<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>75575</bug_id>
          
          <creation_ts>2012-01-04 14:19:38 -0800</creation_ts>
          <short_desc>Improve variable resolution order on window</short_desc>
          <delta_ts>2012-08-22 06:32:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://bugs.ecmascript.org/show_bug.cgi?id=78</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>49739</dependson>
    
    <dependson>84247</dependson>
    
    <dependson>85001</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>arv</cc>
    
    <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>gregsimon</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>529752</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-01-04 14:19:38 -0800</bug_when>
    <thetext>WebKit&apos;s variable resolution order on window has caused a number of bugs for the Closure Compiler. See http://code.google.com/p/chromium/issues/detail?id=80591 for more details of the case that keeps biting them.

Also see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0389.html and http://lists.w3.org/Archives/Public/public-script-coord/2012JanMar/0010.html for discussion on standardizing this. The discussion is not quite done, but it seems likely the WebKit/JSC/V8 will need to change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>537227</commentid>
    <comment_count>1</comment_count>
    <who name="Greg Simon">gregsimon</who>
    <bug_when>2012-01-17 11:27:13 -0800</bug_when>
    <thetext>I looked at a CL for this bug and yes it does require a v8 change for v8-based webkit browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>544462</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-01-27 15:48:47 -0800</bug_when>
    <thetext>OK. This is resolved now. http://lists.w3.org/Archives/Public/public-script-coord/2012JanMar/0104.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609231</commentid>
    <comment_count>3</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-04-24 16:35:29 -0700</bug_when>
    <thetext>V8 has fixed this (behind a flag) but since all WebIDL attributes are implemented as own properties on the global object we need to fix bug 49739 to get non configurable properties to work correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>610071</commentid>
    <comment_count>4</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-04-25 14:59:33 -0700</bug_when>
    <thetext>The ES5.2 behavior is at https://bugs.ecmascript.org/show_bug.cgi?id=78</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>701846</commentid>
    <comment_count>5</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-08-22 06:32:45 -0700</bug_when>
    <thetext>Chrome is now shipping with this behavior.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>