mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibWeb: Abort dependent signals before firing abort event
Previously, there was a bug in the specification that would cause an assertion failure, due to the abort event being fired before all dependent signals were aborted.
This commit is contained in:
parent
68fcc37531
commit
3ae4ea7b10
Notes:
github-actions[bot]
2024-09-09 13:12:26 +00:00
Author: https://github.com/tcl3
Commit: 3ae4ea7b10
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1336
3 changed files with 46 additions and 13 deletions
11
Tests/LibWeb/Text/input/DOM/AbortSignal-any-crash.html
Normal file
11
Tests/LibWeb/Text/input/DOM/AbortSignal-any-crash.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const abortController = new AbortController();
|
||||
const signal = AbortSignal.any([abortController.signal]);
|
||||
abortController.signal.addEventListener("abort", () => { AbortSignal.any([signal]) });
|
||||
abortController.abort();
|
||||
println("PASS (didn't crash)");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue