[Webkit-unassigned] [Bug 172689] New: [WebIDL] Instances of Storage interface do respect the rules of not overriding builtins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 28 18:20:47 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172689

            Bug ID: 172689
           Summary: [WebIDL] Instances of Storage interface do respect the
                    rules of not overriding builtins
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sam at webkit.org
                CC: cdumez at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170529/a55a94a5/attachment.html>


More information about the webkit-unassigned mailing list