LibWeb/HTML: Add null handling for "get noopener for window open"

See: https://github.com/whatwg/html/pull/10847

Which also fixes a crash when window.open is given a blob URL which is
not present in the Blob URL registry.
This commit is contained in:
Shannon Booth 2024-12-11 15:34:31 +13:00 committed by Jelle Raaijmakers
parent 03aafda788
commit 6c691ccddc
Notes: github-actions[bot] 2024-12-17 16:07:46 +00:00
3 changed files with 13 additions and 6 deletions

View file

@ -0,0 +1,7 @@
<script src="../include.js"></script>
<script>
test(() => {
window.open('blob:file://').close();
println("PASS! (Didn't crash)");
})
</script>