<?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>29418</bug_id>
          
          <creation_ts>2016-02-04 12:21:34 +0000</creation_ts>
          <short_desc>PlatformObjectGetOwnProperty&apos;s ignoreNamedProps feature</short_desc>
          <delta_ts>2016-02-04 14:43:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124830</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-04 12:21:34 +0000</bug_when>
    <thetext>Is there any class that supports indexed getters that also has a member that could be mistaken for an indexed getter?

Because that seems to be the only reason why we wouldn&apos;t return a property descriptor for undefined here.

And the fact that we don&apos;t return a property descriptor for undefined here actually creates a bug for the Window object, since its named properties are looked up in a different algorithm on a different object. Having said that, this bug will go away since we&apos;ll most likely move indexed property lookup to the window proxy object so the Window object can become an &quot;ordinary&quot; object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124833</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2016-02-04 14:30:32 +0000</bug_when>
    <thetext>&gt; Because that seems to be the only reason why we wouldn&apos;t return a property
&gt; descriptor for undefined here.

You mean at the point where we set ignoreNamedProps to true in http://heycam.github.io/webidl/#getownproperty-guts step 1.3?

It&apos;s possible that this predates the change to make [[DefineOwnProperty]] just disallow adding indexed-looking props, assuming it ever allowed it.  So back then you could have expandos with integer names and those were supposed to get picked up via step 3.

That said, I guess someone _could_ in theory define an unforgeable thing named &quot;_1&quot; (in the IDL) on an interface with indexed props.  That seems silly and we should not support it.  So I think you&apos;re right that we could just return here if we wanted to, though it should be equivalent to fall through, since we know step 3 won&apos;t find anything.

Note that we do still need the ignoreNamedProps thing in general, for [[Set]] to work right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124836</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-04 14:43:55 +0000</bug_when>
    <thetext>Given that [[Set]] needs this setting the variable there is actually shorter than returning the correct property descriptor.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>