fune/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/promise-reject-and-remove.html
Yutaka Hirano 34ce1a75e3 Bug 1743960 [wpt PR 31829] - Stop processing rejected promises in detached frames, a=testonly
Automatic update from web-platform-tests
Stop processing rejected promises in detached frames

...to avoid a DCHECK failure in ScriptState::Scope creation.

The test is written by hiroshige@chromium.org.

Bug: 1247801
Change-Id: Ife88bdf2e2f1bdb5016d240e859ff1a86f134cbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3312665
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Auto-Submit: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947394}

--

wpt-commits: 507ce424f5bc1cade2e2dcedf5de4f6c69cd62b1
wpt-pr: 31829
2021-12-20 11:37:17 +00:00

10 lines
358 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
window.onload = t.step_func_done();
}, 'Removing iframe in promise reject handler should not crash');
</script>
<iframe src="resources/promise-reject-and-remove-iframe.html"></iframe>