Intent to implement and ship: allow-popups-to-escape-sandbox sandbox flag
117 views
Skip to first unread message
Boris Zbarsky
unread,
May 6, 2016, 2:48:54 AM5/6/16
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Summary: The idea is to add a way for a sandboxed iframe to open a popup
window that is not sandboxed, via a new token in the sandbox attribute
that loosens the "everything you open will be sandboxed like you"
restriction. This obviously allows the iframe to open itself and thus
escape the sandbox, hence the naming. This is a useful thing to allow
because this way ads or search results can be sandboxed but still open
the site they are linking to without sandboxing, and the fact that the
opening requires an explicit user action means they can't just
automatically unsandbox themselves....
This feature has been requested by numerous people who would really like
to sandbox more stuff but can't because then said stuff can't open the
things it needs to open.
I'm happy to see this implemented since I've had web developers ask about
it in the past. I think anything we can do to get more ads running in
sandboxed iframes is a good thing.