mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00: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:
parent
6a668f27c7
commit
218ac86b67
Notes:
github-actions[bot]
2024-11-30 11:07:10 +00:00
Author: https://github.com/shannonbooth
Commit: 218ac86b67
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2631
3 changed files with 15 additions and 2 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue