<?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>23218</bug_id>
          
          <creation_ts>2013-09-11 20:26:33 +0000</creation_ts>
          <short_desc>&lt;iframe name=foo&gt; should be able to access parent.window.foo, even cross-origin, according to Gecko and Safari.</short_desc>
          <delta_ts>2013-10-01 20:53:58 +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>DUPLICATE</resolution>
          <dup_id>21674</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#security-2</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>bobbyholley</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93267</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-11 20:26:33 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#security-2
Complete: http://www.whatwg.org/c#security-2
Referrer: 

Comment:
&lt;iframe name=foo&gt; should be able to access parent.window.foo, even
cross-origin, according to Gecko and Safari.

Posted from: 216.239.45.72 by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1612.2 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93268</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-11 20:26:59 +0000</bug_when>
    <thetext>TESTCASE
http://www.hixie.ch/tests/adhoc/dom/level0/window/security/001.html

Chrome fails this. (cc abarth)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93275</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-11 21:32:09 +0000</bug_when>
    <thetext>Er, ignore that test. I changed it afterwards. It&apos;s testing something else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93405</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-09-16 03:17:02 +0000</bug_when>
    <thetext>I&apos;ve been trying to see if we can drop this in Gecko: disallow all cross-origin access to named _or_ indexed stuff on windows....  Web compatible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93436</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-16 17:50:19 +0000</bug_when>
    <thetext>I would definitely be in favour of dropping this if you can, but I would be surprised if it was Web compatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93451</commentid>
    <comment_count>5</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-09-16 19:34:39 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #4)
&gt; I would definitely be in favour of dropping this if you can, but I would be
&gt; surprised if it was Web compatible.

I&apos;m going to give it a try. I&apos;ve filed [1] and [2].

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=916939
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=916945</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93500</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-17 20:00:33 +0000</bug_when>
    <thetext>Cool, I&apos;ll wait to see what happens before fixing the spec then. Hopefully that&apos;ll make you happy bz, since you&apos;ve complained about the opposite in the past. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93501</commentid>
    <comment_count>7</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-09-17 20:02:05 +0000</bug_when>
    <thetext>I can clearly never be happy.  MWAHAHA!  ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93604</commentid>
    <comment_count>8</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-09-20 17:38:49 +0000</bug_when>
    <thetext>(In reply to Bobby Holley (:bholley) from comment #5)
&gt; (In reply to Ian &apos;Hixie&apos; Hickson from comment #4)
&gt; &gt; I would definitely be in favour of dropping this if you can, but I would be
&gt; &gt; surprised if it was Web compatible.
&gt; 
&gt; I&apos;m going to give it a try. I&apos;ve filed [1] and [2].
&gt; 
&gt; [1] https://bugzilla.mozilla.org/show_bug.cgi?id=916939

This one (dropping support for named access on cross-origin windows) broke Google Hangouts, so I backed it out. I think it&apos;s pretty doomed.

&gt; [2] https://bugzilla.mozilla.org/show_bug.cgi?id=916945

This one involves subframes polluting the scope of their parent. I came up with a trick here that I think will make it web-compatible. We&apos;ll see soon enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94116</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-01 20:53:58 +0000</bug_when>
    <thetext>This is really bug 21674, right? I&apos;m marking this as a dupe, reopen it if I missed something.


&gt; &gt; [2] https://bugzilla.mozilla.org/show_bug.cgi?id=916945
&gt; 
&gt; This one involves subframes polluting the scope of their parent. I came up
&gt; with a trick here that I think will make it web-compatible. We&apos;ll see soon
&gt; enough.

If you manage that, please file a new bug to cover it.

*** This bug has been marked as a duplicate of bug 21674 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>