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