Bug 1830708 [wpt PR 39773] - Fix crash with Request in detached realm, a=testonly
commit2e64441a708fc03eeafc4c55af27c603c569dfab
authorAdam Rice <ricea@chromium.org>
Wed, 17 May 2023 13:46:18 +0000 (17 13:46 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 21 May 2023 22:44:42 +0000 (21 22:44 +0000)
tree4884d7bf647545b7986a55ef987f2a91106970e4
parent7c9053f3fbbc76159ff64714434aa5d517ebd722
Bug 1830708 [wpt PR 39773] - Fix crash with Request in detached realm, a=testonly

Automatic update from web-platform-tests
Fix crash with Request in detached realm

Constructing a Request object from another Request object with a
non-empty body in a detached realm would crash.

Fix it by not attempting to enter a ScriptState Scope when the realm is
detached.

BUG=1427266

Change-Id: Ie453a1acb62c07007b4bd3a650bee22e76ac08df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4496167
Reviewed-by: Nidhi Jaju <nidhijaju@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1140808}

--

wpt-commits: 29c3d2aa9ab15cfeb63b8329f01c151403b17462
wpt-pr: 39773
testing/web-platform/tests/fetch/api/request/multi-globals/construct-in-detached-frame.window.js [new file with mode: 0644]