[Webkit-unassigned] [Bug 205669] New: Reflect.construct() with a the optional newTarget parameter does not work with DOM constructors

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 31 18:28:01 PST 2019


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

            Bug ID: 205669
           Summary: Reflect.construct() with a the optional newTarget
                    parameter does not work with DOM constructors
           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

Created attachment 386567

  --> https://bugs.webkit.org/attachment.cgi?id=386567&action=review

sub.html

Reflect.construct() with a the optional newTarget parameter does not work with DOM constructors, such as DOMParser.

For example, given a script with two access to two global objects, mainWindow and childWindow:

Whereas this works:
var value1 = Reflect.construct(window.String, [], childWindow.String);
value.constructor == childWindow.String;

this does not:

var value1 = Reflect.construct(window.DOMParser, [], childWindow.DOMParser);
value.constructor == childWindow.DOMParser;

-- 
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/20200101/4677af53/attachment-0001.htm>


More information about the webkit-unassigned mailing list