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:
Shannon Booth 2024-11-28 05:08:25 +13:00 committed by Andreas Kling
commit 218ac86b67
Notes: github-actions[bot] 2024-11-30 11:07:10 +00:00
3 changed files with 15 additions and 2 deletions

View 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>