<?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>22102</bug_id>
          
          <creation_ts>2013-05-21 04:24:49 +0000</creation_ts>
          <short_desc>Enumeration of cross-origin objects should silently return nothing</short_desc>
          <delta_ts>2013-06-26 17:45:54 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bobby Holley (:bholley)">bobbyholley</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87951</commentid>
    <comment_count>0</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-05-21 04:24:49 +0000</bug_when>
    <thetext>See https://bugzilla.mozilla.org/show_bug.cgi?id=862380#c4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89026</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-10 21:47:08 +0000</bug_when>
    <thetext>heycam, any input on how I should specify this from WebIDL&apos;s perspective?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89043</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-06-10 23:58:16 +0000</bug_when>
    <thetext>I don&apos;t even know if there&apos;s a good way to specify that from the perspective of the ES spec.  I think you&apos;ll just need to state the requirement about enumeration somewhere in your spec.  If you feel that the &quot;Property enumeration&quot; section in Web IDL needs some rework to &quot;allow&quot; your overriding it, let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89342</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-14 23:53:14 +0000</bug_when>
    <thetext>I don&apos;t really understand how I would specify this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89766</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-24 20:18:06 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2362

WebKit/Blink enumerate nothing.
Firefox enumerates nothing and bars access to .document for some reason.
IE throws an exception.


I&apos;ve tried to specify what Webkit/Blink do here. Hopefully I didn&apos;t use terminology in a bogus fashion. As usual, reopen if I&apos;m being silly...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89767</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-24 20:28:57 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7997.
Check-in comment: Block enumeration of cross-origin objects, and clean up the language around those objects to be more consistent so that differences can more easily be seen.
http://html5.org/tools/web-apps-tracker?from=7996&amp;to=7997</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89768</commentid>
    <comment_count>6</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-06-24 20:45:57 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; WebKit/Blink enumerate nothing.
&gt; Firefox enumerates nothing and bars access to .document for some reason.

Window.document is not cross-origin accessible per-spec, right? AFAICT Gecko&apos;s behavior here is spec-correct:

http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#security-window</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89769</commentid>
    <comment_count>7</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-06-24 20:48:50 +0000</bug_when>
    <thetext>Also, why the localStorage changes? That&apos;s not cross-origin accessible, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89905</commentid>
    <comment_count>8</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2013-06-26 17:45:54 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #4)
&gt; &gt; WebKit/Blink enumerate nothing.
&gt; &gt; Firefox enumerates nothing and bars access to .document for some reason.
&gt; 
&gt; Window.document is not cross-origin accessible per-spec, right? AFAICT
&gt; Gecko&apos;s behavior here is spec-correct:

Hixie confirmed on IRC that this is correct.

(In reply to comment #7)
&gt; Also, why the localStorage changes? That&apos;s not cross-origin accessible,
&gt; right?

I&apos;ve filed bug 22481 for this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>