<?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>18741</bug_id>
          
          <creation_ts>2012-08-30 09:33:26 +0000</creation_ts>
          <short_desc>Somewhere the anti-looping behaviour should be specified since this works interoperably across browsers and seems to be a compat requirement for the web. It seems that if the iframe src resolves to a url of an ancestor browsing context, excluding the frag</short_desc>
          <delta_ts>2012-12-01 21:56:35 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#process-the-iframe-attributes</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>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73057</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-30 09:33:26 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#process-the-iframe-attributes
Complete: http://www.whatwg.org/c#process-the-iframe-attributes

Comment:
Somewhere the anti-looping behaviour should be specified since this works
interoperably across browsers and seems to be a compat requirement for the
web. It seems that if the iframe src resolves to a url of an ancestor browsing
context, excluding the fragment component, then nothing should load in the
iframe.

Posted from: 2001:4c28:a030:30:1d3c:929e:c265:c87b
User agent: Opera/9.80 (X11; Linux x86_64; U; Edition Next; en) Presto/2.11.310 Version/12.50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73062</commentid>
    <comment_count>1</comment_count>
    <who name="James Graham">james</who>
    <bug_when>2012-08-30 13:19:14 +0000</bug_when>
    <thetext>OK, not quite perfect interoperability, but [1] seems to be close to the desired behaviour

[1] http://hoppipolla.co.uk/tests/iframe/nested_iframes.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74085</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-19 19:57:54 +0000</bug_when>
    <thetext>This doesn&apos;t seem accurate, I&apos;ve definitely seen cases of deeper loops when hacking &lt;iframe&gt;s in the live DOM viewer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79232</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-01 21:54:43 +0000</bug_when>
    <thetext>I don&apos;t follow what&apos;s going on in [1].

However, in my own testing I agree that Opera and Firefox do what you describe. WebKit seems to allow one extra iteration. I can&apos;t run IE on this machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79233</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-12-01 21:56:35 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7555.
Check-in comment: Browsers won&apos;t let you nest iframes that point to ancestors.
http://html5.org/tools/web-apps-tracker?from=7554&amp;to=7555</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>