WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
159756
Object.prototype.__proto__ getter still provides access to WindowProxy
https://bugs.webkit.org/show_bug.cgi?id=159756
Summary
Object.prototype.__proto__ getter still provides access to WindowProxy
Mark S. Miller
Reported
2016-07-13 23:57:41 PDT
Re
https://bugs.webkit.org/show_bug.cgi?id=141865
, the underlying problem remains. At
https://bugs.webkit.org/show_bug.cgi?id=141865#c11
I write: The more interesting case is:
>>> (function(){'use strict'; var g = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').get; return g();})();
so that g is obtained from a local environment record rather than the global one. On this, FF Nightly 50.0a1 (2016-07-13) correctly throws TypeError: get __proto__ method called on incompatible undefined whereas Webkit Nightly 9.1.1 (11601.6.17,
r203190
) returns the WindowPrototype, which is just as dangerous as ever. At
https://bugs.webkit.org/show_bug.cgi?id=141865#c9
Brent asked me to open a new bug if this is still a problem. Hence this new bug.
Attachments
Screenshot of failure on r203223 in debugger console
(285.19 KB, image/png)
2016-07-14 15:33 PDT
,
Mark S. Miller
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2016-07-14 10:07:36 PDT
On
r203223
I get the following output.
>>> (function(){'use strict'; var g = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').get; return g();})();
Exception: TypeError: Can't convert undefined or null to object Is this incorrect?
Mark S. Miller
Comment 2
2016-07-14 15:33:56 PDT
Created
attachment 283694
[details]
Screenshot of failure on
r203223
in debugger console
Mark S. Miller
Comment 3
2016-07-14 15:35:22 PDT
That's not the behavior I am seeing in WebKit Nightly just now on 9.1.1 (11601.6.17,
r203223
). See the attached screenshot.
Mark S. Miller
Comment 4
2016-07-14 15:37:59 PDT
In that screenshot, nevermind the red line about a failure to load above the real example. That is completely unrelated.
Mark S. Miller
Comment 5
2018-07-25 07:57:07 PDT
Can this bug be closed now? I think the issues are fixed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug