WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
172689
[WebIDL] Instances of Storage interface do respect the rules of not overriding builtins
https://bugs.webkit.org/show_bug.cgi?id=172689
Summary
[WebIDL] Instances of Storage interface do respect the rules of not overridin...
Sam Weinig
Reported
2017-05-28 18:20:47 PDT
As the Storage interface does not have OverrideBuiltins (unlike its peer, DOMStringMap) it must allow builtins to win and this includes properties added to the prototype chain. A small test of this is: For: Storage.prototype['customProperty'] = 'prototype-value'; window.sessionStorage['customProperty'] = 'storage-value'; window.sessionStorage['customProperty'] should equal 'prototype-value', but instead equals 'storage-value'. Test case attached.
Attachments
Test case
(904 bytes, text/html)
2017-05-28 22:01 PDT
,
Sam Weinig
no flags
Details
Test case
(1.25 KB, text/html)
2017-06-08 14:03 PDT
,
Sam Weinig
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2017-05-28 22:01:22 PDT
Created
attachment 311455
[details]
Test case
Sam Weinig
Comment 2
2017-06-08 14:03:38 PDT
Created
attachment 312341
[details]
Test case Updated test case.
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