mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibWeb: Use relevant principal settings for HighResolutionTime
Fixes a crash when setting the timestamps when creating a DOM event within a ShadowRealm.
This commit is contained in:
committed by
Andreas Kling
parent
6a668f27c7
commit
218ac86b67
Notes:
github-actions[bot]
2024-11-30 11:07:10 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/218ac86b67e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2631
8
Tests/LibWeb/Text/input/HTML/ShadowRealm-DOM-event.html
Normal file
8
Tests/LibWeb/Text/input/HTML/ShadowRealm-DOM-event.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const shadowRealm = new ShadowRealm();
|
||||
const result = shadowRealm.evaluate(`() => new Event("My DOM Event").type;`)();
|
||||
println(result);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user