github web-platform-tests/wpt merge_pr_46539

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
15 months ago

Fix crash with unhandled promise rejections in worker Shadow Realms

Worker thread JS contexts have a promise rejection handler, but expect
the execution context to be a worker or worklet. Shadow realms are
initialized from these contexts. A method is added to
ShadowRealmGlobalScope to access this initiator context so the existing
logic can be reused.

Bug: 3399906
Change-Id: I8951082ec566eaae4d68e551a0d70a2b0caf8e85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5552840
Reviewed-by: Weizhong Xia weizhong@google.com
Reviewed-by: Nate Chapin japhet@chromium.org
Commit-Queue: Jeremy Rose jeremya@chromium.org
Reviewed-by: Yuki Shiino yukishiino@chromium.org
Cr-Commit-Position: refs/heads/main@{#1308190}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.