<?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>28390</bug_id>
          
          <creation_ts>2015-04-01 13:21:04 +0000</creation_ts>
          <short_desc>Which named properties on the Window should be enumerable?</short_desc>
          <delta_ts>2015-09-01 19:24:42 +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>https://html.spec.whatwg.org/#named-access-on-the-window-object</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>adrianba</cc>
    
    <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>travil</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119175</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-04-01 13:21:04 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/browsers.html
Multipage: https://html.spec.whatwg.org/multipage/#named-access-on-the-window-object
Complete: https://html.spec.whatwg.org/#named-access-on-the-window-object
Referrer: 

Comment:
Which named properties on the Window should be enumerable?

Posted from: 98.110.194.132
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:40.0) Gecko/20100101 Firefox/40.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119177</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-01 13:28:38 +0000</bug_when>
    <thetext>Window has three different things appearing on it (or more precisely on the named properties object) as named properties:

1)  Frame names.
2)  Element ids.
3)  Element names for some elements.

Right now the spec says these should all be enumerable.  UA behavior seems to be the following:

Chrome: none are enumerable.
Safari: none are enumerable.
IE: Only frame names are enumerable, others are not.
Firefox: Frame names, element names, and _some_ element IDs are enumerable (long
         story in terms of why it ends up this way).

I think we should standarize on either the Chrome/Safari behavior or the IE behavior here, personally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119178</commentid>
    <comment_count>2</comment_count>
      <attachid>1591</attachid>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-01 13:29:15 +0000</bug_when>
    <thetext>Created attachment 1591
Small testcase for this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119180</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-01 13:42:17 +0000</bug_when>
    <thetext>I just checked, and Firefox used to do what Chrome/Safari do before we started trying to align with the current spec.  

Presto Opera used to do what IE does.

I&apos;m going to switch Firefox to our old behavior for now until this is sorted out for iframes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119189</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-02 08:58:57 +0000</bug_when>
    <thetext>Adrian, are you OK with changing this in IE/Spartan to not enumerate frame names?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119236</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2015-04-04 17:24:14 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #4)
&gt; Adrian, are you OK with changing this in IE/Spartan to not enumerate frame
&gt; names?

I checked with Travis on this (cc&apos;d). Given that there&apos;s no interop here we&apos;d be okay with changing to the Chrome/Safari behaviour and not enumerating names (with the usual caveat of not knowing when we&apos;d check in this change - it actually turns out to be a reasonable amount of work to remove).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122971</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-01 12:53:05 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/commit/681f341183cd8e029028f1862c147b25f5e51916

Thank you bz for doing this research.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123002</commentid>
    <comment_count>7</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2015-09-01 19:24:42 +0000</bug_when>
    <thetext>Note to self: I filed a bug to track this in Edge (internal VSO4445842).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1591</attachid>
            <date>2015-04-01 13:29:15 +0000</date>
            <delta_ts>2015-04-01 13:29:15 +0000</delta_ts>
            <desc>Small testcase for this</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1217</size>
            <attacher name="Boris Zbarsky">bzbarsky</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHNjcmlwdD4KICAgICAg
ICAgICAgdmFyIG9uTG9hZCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGNvbnNvbGUu
bG9nKCJESVYgOiAiICsgKCdib3gxJyBpbiB3aW5kb3cpKQogICAgICAgICAgICAgICAgY29uc29s
ZS5sb2coIklNRyA6ICIgKyAoJ2JveDInIGluIHdpbmRvdykpCiAgICAgICAgICAgICAgICBjb25z
b2xlLmxvZygiSUZSQU1FIDogIiArICgnYm94MycgaW4gd2luZG93KSkKICAgICAgICAgICAgICAg
IGNvbnNvbGUubG9nKCJJTUcyIDogIiArICgnYm94NCcgaW4gd2luZG93KSkKICAgICAgICAgICAg
ICAgIAogICAgICAgICAgICAgICAgdmFyIGhhc0JveDEgPSBmYWxzZQogICAgICAgICAgICAgICAg
dmFyIGhhc0JveDIgPSBmYWxzZQogICAgICAgICAgICAgICAgdmFyIGhhc0JveDMgPSBmYWxzZQog
ICAgICAgICAgICAgICAgdmFyIGhhc0JveDQgPSBmYWxzZQogICAgICAgICAgICAgICAgCiAgICAg
ICAgICAgICAgICBmb3IgKHZhciBpIGluIHdpbmRvdykgewogICAgICAgICAgICAgICAgICAgIGlm
IChpID09ICdib3gxJykgaGFzQm94MSA9IHRydWUKICAgICAgICAgICAgICAgICAgICBpZiAoaSA9
PSAnYm94MicpIGhhc0JveDIgPSB0cnVlCiAgICAgICAgICAgICAgICAgICAgaWYgKGkgPT0gJ2Jv
eDMnKSBoYXNCb3gzID0gdHJ1ZQogICAgICAgICAgICAgICAgICAgIGlmIChpID09ICdib3g0Jykg
aGFzQm94NCA9IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAKICAg
ICAgICAgICAgICAgIGNvbnNvbGUubG9nKCJoYXMgRElWICIgKyBoYXNCb3gxKQogICAgICAgICAg
ICAgICAgY29uc29sZS5sb2coImhhcyBJTUcgIiArIGhhc0JveDIpCiAgICAgICAgICAgICAgICBj
b25zb2xlLmxvZygiaGFzIElGUkFNRSAiICsgaGFzQm94MykKICAgICAgICAgICAgICAgIGNvbnNv
bGUubG9nKCJoYXMgSU1HMiAiICsgaGFzQm94NCkKICAgICAgICAgICAgfQogICAgICAgIDwvc2Ny
aXB0PgogICAgPC9oZWFkPgogICAgPGJvZHkgb25sb2FkPSJvbkxvYWQoKSI+CiAgICAgICAgPGRp
diBpZD0iYm94MSI+PC9kaXY+CiAgICAgICAgPGltZyBpZD0iYm94MiIvPgogICAgICAgIDxpZnJh
bWUgbmFtZT0iYm94MyI+PC9pZnJhbWU+CiAgICAgICAgPGltZyBuYW1lPSJib3g0Ij48L2ltZz4K
ICAgIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>