Bug 1860857 [wpt PR 42218] - Fix document.baseURI for about:blank documents, a=testonly
commit499958c847dc49ba256c1df1a5c1ac137839eb3b
authorJoey Arhar <jarhar@chromium.org>
Wed, 1 Nov 2023 08:56:26 +0000 (1 08:56 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 6 Nov 2023 09:06:07 +0000 (6 09:06 +0000)
treea4d7ca941430ac3e28fca13937367e29fcdc31e1
parentd0e5c085f8102dfda8b20a2243cff852af14c348
Bug 1860857 [wpt PR 42218] - Fix document.baseURI for about:blank documents, a=testonly

Automatic update from web-platform-tests
Fix document.baseURI for about:blank documents

This bug manifests when creating a new about:blank document, in which
case document.baseURI was returning the same baseURI as the document in
context when the new document was created.

This patch improves our compatibility with the HTML spec and with the
other browsers.

Fixed: 1486750
Change-Id: Ib3ec794e096dbbb6ead508119b3cd8cf3dab9d68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4893399
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1214252}

--

wpt-commits: 4945ce495e61b03a25ab0875eebecdbb71a7a513
wpt-pr: 42218
testing/web-platform/tests/html/infrastructure/urls/base-url/document-base-uri-synthetic-document.html [new file with mode: 0644]