Closed Bug 2084021 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63880 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328061

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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 set

HTML 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>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.