<?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>27520</bug_id>
          
          <creation_ts>2014-12-04 17:51:03 +0000</creation_ts>
          <short_desc>Considering returning null rather than throwing for cross-origin frameElement</short_desc>
          <delta_ts>2015-10-29 10:45:12 +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>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#navigating-nested-browsing-contexts-in-the-dom</bug_file_loc>
          <status_whiteboard>[good first bug]</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>annevk</cc>
    
    <cc>bobbyholley</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>yukishiino</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115942</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-12-04 17:51:03 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#navigating-nested-browsing-contexts-in-the-dom
Complete: https://html.spec.whatwg.org/#navigating-nested-browsing-contexts-in-the-dom
Referrer: 

Comment:
Considering returning null rather than throwing for cross-origin frameElement

Posted from: 12.216.224.110
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115943</commentid>
    <comment_count>1</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2014-12-04 17:52:30 +0000</bug_when>
    <thetext>This is what Gecko does now - it seems reasonable and symmetric, given that we also return null for cross-origin .contentDocument. Any reason not to return null instead of throwing?

I&apos;m totally willing to change Gecko&apos;s behavior if we decide for some reason that it&apos;s undesirable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116568</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-19 19:59:26 +0000</bug_when>
    <thetext>I could go either way. What do other browsers do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116577</commentid>
    <comment_count>3</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2014-12-19 22:50:35 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #2)
&gt; I could go either way. What do other browsers do?

Chrome throws. I can&apos;t figure out how to make Safari&apos;s web console change contexts to the iframe, and I don&apos;t have time to write an actual test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123798</commentid>
    <comment_count>4</comment_count>
    <who name="Yuki Shiino">yukishiino</who>
    <bug_when>2015-10-20 07:12:33 +0000</bug_when>
    <thetext>I happened to know this issue, and I&apos;m now thinking that returning null is preferable.  If this is going to be spec&apos;ed, I&apos;m happy to implement the new behavior in Chrome.

What&apos;s the situation?  What&apos;s preventing to update the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123799</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-10-20 07:34:39 +0000</bug_when>
    <thetext>We just need someone to provide a patch to the specification or one of the editors to get around to it.

See https://github.com/whatwg/html for details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123801</commentid>
    <comment_count>6</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-10-20 08:31:22 +0000</bug_when>
    <thetext>I&apos;ve attempted to fix this in https://github.com/whatwg/html/pull/266

Shiino-san, can you update http://w3c-test.org/html/browsers/windows/nested-browsing-contexts/frameElement.sub.html and import that test into Blink when you implement the new behavior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123836</commentid>
    <comment_count>7</comment_count>
    <who name="Yuki Shiino">yukishiino</who>
    <bug_when>2015-10-22 07:51:28 +0000</bug_when>
    <thetext>Thanks for updating the spec.  Will work on W3C tests and Blink implementation (in my spare time, maybe slow).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123984</commentid>
    <comment_count>8</comment_count>
    <who name="Yuki Shiino">yukishiino</who>
    <bug_when>2015-10-29 10:45:12 +0000</bug_when>
    <thetext>Just FYI, everything has got done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>