LibURL: Do not treat port of 0 as a null port in Origin

It is not treated as the same thing in the specification, or by us in
other places too. This fixes 8 more origin related URL tests on WPT.
This commit is contained in:
Shannon Booth 2024-10-05 18:08:18 +13:00 committed by Andreas Kling
commit 088b659abd
Notes: github-actions[bot] 2024-10-05 08:47:26 +00:00
6 changed files with 26 additions and 13 deletions

View file

@ -0,0 +1,7 @@
<a id="a" href='http://f:0/c'>
<script src="../include.js"></script>
<script>
test(() => {
println(document.getElementById("a").origin);
})
</script>