mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Get Page from principal realm during resource loading
Fixes a crash for module loading for a shadow realm.
This commit is contained in:
parent
b677844f8d
commit
4913dac745
Notes:
github-actions[bot]
2024-11-24 22:30:46 +00:00
Author: https://github.com/shannonbooth
Commit: 4913dac745
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2556
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/yyny
4 changed files with 13 additions and 1 deletions
10
Tests/LibWeb/Text/input/HTML/ShadowRealm-importValue.html
Normal file
10
Tests/LibWeb/Text/input/HTML/ShadowRealm-importValue.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(async done => {
|
||||
const shadowRealm = new ShadowRealm();
|
||||
const promise = shadowRealm.importValue("../../data/external-module.mjs", "foo");
|
||||
const value = await promise;
|
||||
println(value);
|
||||
done();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue