Bug 75575 - Improve variable resolution order on window
Summary: Improve variable resolution order on window
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://bugs.ecmascript.org/show_bug....
Depends on: 49739 84247 85001
  Show dependency treegraph
Reported: 2012-01-04 14:19 PST by Ojan Vafai
Modified: 2012-08-22 06:32 PDT (History)
7 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.