mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
Everywhere: Remove ShadowRealm support
The proposal has not seemed to progress for a while, and there is a open issue about module imports which breaks HTML integration. While we could probably make an AD-HOC change to fix that issue, it is deep enough in the JS engine that I am not particularly keen on making that change. Until other browsers begin to make positive signals about shipping ShadowRealms, let's remove our implementation for now. There is still some cleanup that can be done with regard to the HTML integration, but there are a few more items that need to be untangled there.
This commit is contained in:
committed by
Shannon Booth
parent
e2e3c7fcdf
commit
f27bc38aa7
Notes:
github-actions[bot]
2026-04-05 11:59:00 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/f27bc38aa7c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8753
@@ -2,21 +2,6 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const realm = new ShadowRealm();
|
||||
const result = realm.evaluate(`
|
||||
(() => {
|
||||
let str = "";
|
||||
for (const QueuingStrategy of [CountQueuingStrategy, ByteLengthQueuingStrategy]) {
|
||||
const size1 = (new QueuingStrategy({ highWaterMark: 5 })).size;
|
||||
const size2 = (new QueuingStrategy({ highWaterMark: 10 })).size;
|
||||
str += \`\${QueuingStrategy.name} | size1 === size2 -> \${size1 === size2}\n\`;
|
||||
}
|
||||
return str;
|
||||
})()
|
||||
`);
|
||||
|
||||
println(result);
|
||||
|
||||
for (const QueuingStrategy of [CountQueuingStrategy, ByteLengthQueuingStrategy]) {
|
||||
const size1 = (new QueuingStrategy({ highWaterMark: 5 })).size;
|
||||
const size2 = (new QueuingStrategy({ highWaterMark: 10 })).size;
|
||||
|
||||
Reference in New Issue
Block a user