WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
80921
[JSC] Object.hasOwnProperty errors with Window object
https://bugs.webkit.org/show_bug.cgi?id=80921
Summary
[JSC] Object.hasOwnProperty errors with Window object
Gavin Barraclough
Reported
2012-03-12 18:21:41 PDT
JSDOMWindow::getOwnPropertySlot erroneously searches the prototype chain, which it shouldn't be doing for an 'own' access. 'hasOwnProperty' is implemented in terms of getOwnPropertySlot, so this can result in incorrect results (if you create a property 'foo' on the Window object's prototype, hasOwnProperty for 'foo' on the Window object will return true). Our behavior here is likely related to the sadness that is
bug#49739
.
Attachments
Add attachment
proposed patch, testcase, etc.
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