mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This extends the null navigable check added in commit
b118c99c27 to include all ancestor and
descendant list lookups. Fixes a crash in the following WPT test:
/cookies/schemeful-same-site/schemeful-navigation.tentative.html
25 lines
610 B
HTML
25 lines
610 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
const runTest = id => {
|
|
return new Promise(resolve => {
|
|
window.onmessage = e => {
|
|
let target = window.open("", `test-${id}`);
|
|
|
|
println(`${id}: Target matches source: ${target === e.source}`);
|
|
e.source.close();
|
|
|
|
resolve();
|
|
};
|
|
|
|
window.open("../../data/window-opener-post-message.html", `test-${id}`);
|
|
});
|
|
};
|
|
|
|
asyncTest(async done => {
|
|
await runTest(1);
|
|
await runTest(2);
|
|
done();
|
|
});
|
|
</script>
|