Bug 6395
Summary: | Activation objects should not have __proto__ property | ||
---|---|---|---|
Product: | WebKit | Reporter: | Maciej Stachowiak <mjs> |
Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Maciej Stachowiak
Activation objects (the objects that provide local scope for a function invocation) should not have a
__proto__ property. They don't in Mozilla (which originated the __proto__ extension) and it allows various
optimizations of property lookup if this is not supported.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Maciej Stachowiak
Here's a simple test:
javascript:alert((function() { __proto__.testVariable = 'found'; return window.testVariable; })())
This should show 'found' and does in Firefox 1.5 (but not in some older versions - presumably that means
they decided to change this too from the way it was).
Maciej Stachowiak
This is also fixed by the changes for 6249.
*** This bug has been marked as a duplicate of 6249 ***