[Webkit-unassigned] [Bug 205669] 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 19:44:37 PST 2019


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

--- Comment #5 from Sam Weinig <sam at webkit.org> ---
My guess, though it has been a while since I did too much in here, is that we should probably be using callFrame->newTarget() in some fashion, probably in place of callFrame->jsCallee() in most places. 

We'll need to do a bit more digging in the WebIDL spec to figure out which document the DOMParser should be created with, though I suspect it is the document of newTarget.

We can test what other browsers do by looking at document.url of a document produced by the constructed DOMParser, as it will match it's owner's url.

-- 
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/cf84e45c/attachment.htm>


More information about the webkit-unassigned mailing list