<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28817</bug_id>
          
          <creation_ts>2015-06-16 07:17:59 +0000</creation_ts>
          <short_desc>Add an `allow-popups-to-escape-sandbox` iframe@sandbox flag.</short_desc>
          <delta_ts>2015-08-28 16:51:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://github.com/whatwg/html/pull/14</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike West">mkwst</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>dveditz</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121027</commentid>
    <comment_count>0</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2015-06-16 07:17:59 +0000</bug_when>
    <thetext># 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 `&lt;iframe sandbox=&quot;...&quot;&gt;` 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&apos;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&apos;d enable basically everything except `allow-top-navigation`. Their experiments thus far have been blocked on sandboxing&apos;s inheritance structure: there&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122131</commentid>
    <comment_count>1</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2015-07-16 06:46:35 +0000</bug_when>
    <thetext>Changed the name of the flag after discussion with Boris, et al.

CCing Boris and Dan in the hopes that they&apos;ll say they&apos;re already working on implementing the feature. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122872</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-08-28 16:51:19 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>