mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Pass along the init dictionary for error / buffer change events
Otherwise, information stored in the base event init dictionary will be dropped.
This commit is contained in:
parent
9ce5bbe059
commit
2e5e5d3816
Notes:
github-actions[bot]
2025-03-25 07:55:13 +00:00
Author: https://github.com/trflynn89
Commit: 2e5e5d3816
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4075
5 changed files with 24 additions and 6 deletions
15
Tests/LibWeb/Text/input/DOM/cancelable-events.html
Normal file
15
Tests/LibWeb/Text/input/DOM/cancelable-events.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const printEvent = event => {
|
||||
println(`event=${event.type} cancelable=${event.cancelable}`);
|
||||
};
|
||||
|
||||
printEvent(new ErrorEvent("test1"));
|
||||
printEvent(new ErrorEvent("test2", { cancelable: true }));
|
||||
|
||||
printEvent(new BufferedChangeEvent("test3"));
|
||||
printEvent(new BufferedChangeEvent("test4", { cancelable: true }));
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue