Closed Bug 1817345 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 38562 - Refactor NavigateEvent state checks

Categories

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

task

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Nate Chapin <japhet@chromium.org> wrote:

Refactor NavigateEvent state checks

  • Add a PerformSharedChecks() helper for entry point checks that
    apply to all functions on NavigateEvent (e.g., checking for
    detached window, whether the event is trusted, etc.)
  • Add a state machine for NavigateEvent. Current states are
    Initial, Committed, Scrolled, Finished, and transitions must
    increase. This is of marginal utility now, but will be more useful
    once commit is deferable.
  • Adding the state machine shows that it's possible to scroll before
    commit by calling scroll() during navigate event dispatch (and in
    fact, several tests do so). Fix that.

Change-Id: I48095b97a3463d6bc145114639dbfc5711822b27

Reviewed-on: https://chromium-review.googlesource.com/4262131
WPT-Export-Revision: 1a4437278d88ae1d21b28645e337206190db499e

CI Results

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

Total 6 tests and 1 subtests

Status Summary

Firefox

OK : 6
FAIL : 7

Chrome

OK : 4
PASS : 2
FAIL : 5
ERROR: 2

Safari

OK : 6
FAIL : 7

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/008ea5749c23 [wpt PR 38562] - Refactor NavigateEvent state checks, a=testonly https://hg.mozilla.org/integration/autoland/rev/6684a007b8e0 [wpt PR 38562] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.