[wpt-sync] Sync PR 63880 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328061
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63880 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63880
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328061
WebKit export from bug: A navigation to the current URL gets the wrong navigationType when document.<!---->domain is set
<pre>
A navigation to the current URL gets the wrong navigationType when document.domain is setHTML turns a navigation to the active document's URL into a replace when the initiator is same
origin with that document. FrameLoader::loadURL() checked same origin-domain instead, so
document.domain changed the result: a cross-origin initiator that set document.domain like the
document got "replace", and a same-origin initiator where only one of them set it got "push".The session history itself was right, as FrameLoader::shouldTreatURLAsSameAsCurrent() decides it
with a same-origin check. But the history handling FrameLoader::loadURL() computes is what the
Navigation API reports as the navigation's navigationType, which was wrong in both cases.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328061">https://bugs.webkit.org/show_bug.cgi?id=328061</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=108449
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 137 tests and 8 subtests
Status Summary
Firefox
OK : 1[GitHub] 130[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug]
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 220[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug]
FAIL: 3[GitHub] 43[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug]
Chrome
OK : 1
PASS: 1
FAIL: 3
Safari
OK : 1
FAIL: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/browsers/browsing-the-web/navigating-across-documents/grandparent_location_aboutsrcdoc.sub.window.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-security-check-same-origin-domain.sub.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-with-fragment-fire-load-event.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-about.window.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-data.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-unparseable-url.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/003.html [wpt.fyi]
- Navigation from unload whilst traversing history:
FAIL
- Navigation from unload whilst traversing history:
- /html/browsers/browsing-the-web/navigating-across-documents/012.html [wpt.fyi]
- Link with onclick navigation to javascript url with delayed document.write and href navigation :
FAIL
- Link with onclick navigation to javascript url with delayed document.write and href navigation :
- /html/browsers/browsing-the-web/navigating-across-documents/abort-document-load.html [wpt.fyi]
- Aborting a Document load:
FAIL
- Aborting a Document load:
- /html/browsers/browsing-the-web/navigating-across-documents/abort-document-window-stop.sub.window.html [wpt.fyi]
- Child that immediately stops window during loading does not crash:
FAIL
- Child that immediately stops window during loading does not crash:
- /html/browsers/browsing-the-web/navigating-across-documents/failure-check-sequence.https.html [wpt.fyi]
- COEP check precedes X-Frame-Options check:
FAIL
- COEP check precedes X-Frame-Options check:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-fragment.html [wpt.fyi]
- src:
FAIL - location.href:
FAIL - location.assign:
FAIL - window.open:
FAIL - link click:
FAIL
- src:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html [wpt.fyi]
- history.replaceState:
FAIL
- history.replaceState:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-fragment.html [wpt.fyi]
- location.href:
FAIL - location.assign:
FAIL
- location.href:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-history-length.html [wpt.fyi]
- Starting history.length for window.open():
FAIL - Starting history.length for window.open(about:blank):
FAIL - Starting history.length for window.open(url-with-204-response):
FAIL
- Starting history.length for window.open():
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-load-as-html.xhtml [wpt.fyi]
- javascript: URL navigation to a string must create a HTML document using the correct properties:
FAIL
- javascript: URL navigation to a string must create a HTML document using the correct properties:
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-no-beforeunload.window.html [wpt.fyi]
- Navigating an iframe via location.href to a javascript: URL must not fire beforeunload: string completion:
FAIL - Navigating an iframe via src="" to a javascript: URL after insertion must not fire beforeunload: string completion:
FAIL - Navigating an opened window via location.href to a javascript: URL must not fire beforeunload: string completion:
FAIL - Navigating an opened window with an iframe via location.href to a javascript: URL must not fire beforeunload on the iframe: string completion:
FAIL
- Navigating an iframe via location.href to a javascript: URL must not fire beforeunload: string completion:
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-referrer.window.html [wpt.fyi]
- unsafe-url referrer policy used to create the starting page:
FAIL - origin referrer policy used to create the starting page:
FAIL
- unsafe-url referrer policy used to create the starting page:
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-return-value-handling-dynamic.html [wpt.fyi]
- 0041 set in src="":
FAIL - 0041 set in href="" targeting a frame and clicked:
FAIL - 0080 00FF set in src="":
FAIL - 0080 00FF set in href="" targeting a frame and clicked:
FAIL
- 0041 set in src="":
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-security-check-failure.sub.html [wpt.fyi]
- cross-origin-domain but same-origin, setting src:
FAIL - cross-origin-domain but same-origin, setting location.href:
FAIL
- cross-origin-domain but same-origin, setting src:
- /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-security-check-multi-globals.sub.html [wpt.fyi]
- Using iframeEl.src:
FAIL
- Using iframeEl.src:
- /html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-with-fragment.html [wpt.fyi]
- Navigating a cross-origin iframe to its current url should not replace:
FAIL
- Navigating a cross-origin iframe to its current url should not replace:
- /html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url.html [wpt.fyi]
- Navigating a cross-origin iframe to its current url should not replace:
FAIL
- Navigating a cross-origin iframe to its current url should not replace:
- /html/browsers/browsing-the-web/navigating-across-documents/navigate-iframe-to-same-url-with-document-domain.html [wpt.fyi]
- Navigating a cross-origin iframe that is same origin-domain to its current URL pushes:
FAIL(Chrome:FAIL, Safari:FAIL) - Navigating a same-origin iframe that is not same origin-domain to its current URL replaces:
FAIL(Chrome:PASS, Safari:FAIL) - Navigating a cross-origin iframe that is same origin-domain to its current URL with a fragment pushes:
FAIL(Chrome:FAIL, Safari:FAIL)
- Navigating a cross-origin iframe that is same origin-domain to its current URL pushes:
- /html/browsers/browsing-the-web/navigating-across-documents/navigate_too_many_calls.optional.html [wpt.fyi]
- rate-limited navigations cancel pending lazy-load iframe navigations:
FAIL
- rate-limited navigations cancel pending lazy-load iframe navigations:
- /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html [wpt.fyi]
- Tests that a fragment navigation in the unload handler will not block the initial navigation:
FAIL
- Tests that a fragment navigation in the unload handler will not block the initial navigation:
- /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin.window.html [wpt.fyi]
- Same-origin navigation started from unload handler must be ignored:
FAIL
- Same-origin navigation started from unload handler must be ignored:
- /html/browsers/browsing-the-web/navigating-across-documents/source/navigate-child-src-about-blank.html [wpt.fyi]
- Set the src attribute to about:blank and check referrer:
FAIL
- Set the src attribute to about:blank and check referrer:
- /html/browsers/browsing-the-web/navigating-across-documents/top-level-data-url.window.html [wpt.fyi]
- Navigating a popup using window.open("data:text/html,...", "", "undefined"):
FAIL - Navigating a popup using window.open("data:text/html,...", "", "opener"):
FAIL - Navigating a popup using window.open("resources/redirect.py?location=data%3Atext%2Fhtml%2C...", "", "undefined"):
FAIL - Navigating a popup using window.open("resources/redirect.py?location=data%3Atext%2Fhtml%2C...", "", "opener"):
FAIL
- Navigating a popup using window.open("data:text/html,...", "", "undefined"):
Tests Disabled in Gecko Infrastructure
- /html/browsers/browsing-the-web/navigating-across-documents/grandparent_location_aboutsrcdoc.sub.window.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-security-check-same-origin-domain.sub.html [wpt.fyi]:
SKIPlinked bug:Bug 1718318 - /html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-with-fragment-fire-load-event.html [wpt.fyi]:
SKIPlinked bug:Bug 1779719 - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-about.window.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-data.html [wpt.fyi]:
SKIP - /html/browsers/browsing-the-web/navigating-across-documents/redirect-to-unparseable-url.html [wpt.fyi]:
SKIPlinked bug:Bug 1789710
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d1d0444126a3
https://hg.mozilla.org/mozilla-central/rev/32bf7555cf36
Description
•