[Webkit-unassigned] [Bug 207641] New: Entry realm for promise jobs is incorrect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 12 10:01:10 PST 2020


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

            Bug ID: 207641
           Summary: Entry realm for promise jobs is incorrect
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: d at domenic.me

https://wpt.live/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry-different-function-realm.html tests the entry (used in, for example, determining the base URL for window.open()) incorrect for promise jobs. (Both promise reaction jobs, and promise resolve thenable jobs.)

It should be derived from the realm of the function in question, as it is for other web platform callbacks. However, this does not appear to be what WebKit does.

The spec governing this is in https://html.spec.whatwg.org/multipage/webappapis.html#enqueuejob(queuename,-job,-arguments) step 3, which was admittedly added very recently, in https://github.com/whatwg/html/pull/5212.

Firefox matches the spec entirely. Chrome has a bug in the promise resolve thenable job case, but matches the spec for the promise reaction job case.

-- 
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/20200212/9a9b788a/attachment.htm>


More information about the webkit-unassigned mailing list