Closed Bug 1856740 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42233 - Make navigation-api/navigate-event/ resilient to starting with extra NavigationHistoryEntries

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 42233 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/42233
Details from upstream follow.

Nate Chapin <japhet@chromium.org> wrote:

Make navigation-api/navigate-event/ resilient to starting with extra NavigationHistoryEntries

When WPT are run in-browser or via wptrunner, there may be additional
session history entries when the test starts, so the tests shouldn't
assume that they start with navigation.entries().length == 1 or
navigation.currentEntry.index == 0.

This is a workaround for https://github.com/web-platform-tests/wpt/issues/33590.

Change-Id: I978d492d5d31d110716d6a1d84732aff792aca14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4904223
Reviewed-by: Domenic Denicola \<domenic@chromium.org>
Auto-Submit: Nate Chapin \<japhet@chromium.org>
Commit-Queue: Nate Chapin \<japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1204863}

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 15 tests and 1 subtests

Status Summary

Firefox

OK : 15
FAIL : 15

Chrome

OK : 14
PASS : 12
FAIL : 3
ERROR: 1

Safari

OK : 15
FAIL : 15

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ffb634e43b9 [wpt PR 42233] - Make navigation-api/navigate-event/ resilient to starting with extra NavigationHistoryEntries, a=testonly
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/c186ac4a11f4 [wpt PR 42233] - Make navigation-api/navigate-event/ resilient to starting with extra NavigationHistoryEntries, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.