This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28817 - Add an `allow-popups-to-escape-sandbox` iframe@sandbox flag.
Summary: Add an `allow-popups-to-escape-sandbox` iframe@sandbox flag.
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 07:17 UTC by Mike West
Modified: 2015-08-28 16:51 UTC (History)
3 users (show)

See Also:


Attachments

Description Mike West 2015-06-16 07:17:59 UTC
# Spec

Just mailing list conversation at https://lists.w3.org/Archives/Public/public-whatwg-archive/2015May/0035.html

# Summary

This is a new flag for `<iframe sandbox="...">` which will allow a sandboxed document to spawn new windows without forcing the sandboxing flags upon them. This will allow, for example, a third-party advertisement to be safely sandboxed without forcing the same restrictions upon a landing page. 

# Motivation

Folks in Google's anti-malvertising team would like to begin sandboxing the iframes in which ads are embedded. In some cases, this can be truly restrictive, in others they'd enable basically everything except `allow-top-navigation`. Their experiments thus far have been blocked on sandboxing's inheritance structure: there's no way to open an unsandboxed window from inside a sandbox, which means that a sandboxed advertisement leads to a sandboxed landing page, and so on.

Sites like CodePen have similar desires (as noted at the bottom of https://lists.w3.org/Archives/Public/public-whatwg-archive/2014Feb/0057.html): limit the impact of unknown content by sandboxing it, but allow it to spawn unsandboxed browsing contexts for navigation.

This seems like a reasonable thing to allow an embedder to opt-out of, and adding a new flag to enable otherwise limited functionality is consistent with the rest of `sandbox`.

# Link to entry on the Chromium Dashboard https://www.chromestatus.com/features/5708368589094912
Comment 1 Mike West 2015-07-16 06:46:35 UTC
Changed the name of the flag after discussion with Boris, et al.

CCing Boris and Dan in the hopes that they'll say they're already working on implementing the feature. ;)
Comment 2 Michael[tm] Smith 2015-08-28 16:51:19 UTC
Moved to https://github.com/whatwg/html/pull/14

mkwst, of course feel free to reopen this if you want to also keep tracking it here for some reason.