Bug 75575

Summary: Improve variable resolution order on window
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, arv, barraclough, fpizlo, gregsimon, oliver, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://bugs.ecmascript.org/show_bug.cgi?id=78
Bug Depends on: 49739, 84247, 85001    
Bug Blocks:    

Description Ojan Vafai 2012-01-04 14:19:38 PST
WebKit'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.
Comment 1 Greg Simon 2012-01-17 11:27:13 PST
I looked at a CL for this bug and yes it does require a v8 change for v8-based webkit browsers.
Comment 2 Ojan Vafai 2012-01-27 15:48:47 PST
OK. This is resolved now. http://lists.w3.org/Archives/Public/public-script-coord/2012JanMar/0104.html
Comment 3 Erik Arvidsson 2012-04-24 16:35:29 PDT
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.
Comment 4 Erik Arvidsson 2012-04-25 14:59:33 PDT
The ES5.2 behavior is at https://bugs.ecmascript.org/show_bug.cgi?id=78
Comment 5 Erik Arvidsson 2012-08-22 06:32:45 PDT
Chrome is now shipping with this behavior.