Nate Chapin 4d0f3819e1 Bug 1817345 [wpt PR 38562] - Refactor NavigateEvent state checks, a=testonly
Automatic update from web-platform-tests
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 tracking interception state in
  NavigateEvent. Current states are None, Intercepted, Committed,
  Scrolled, Finished, and transitions must increase. This is hopefully
  easy to follow than the several independent booleans we are
  currently using.
* 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/c/chromium/src/+/4262131
Commit-Queue: Nate Chapin <japhet@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1109657}

--

wpt-commits: 4ec997cb455c429be5b26681b0515428e086cac1
wpt-pr: 38562
2023-03-07 00:23:49 +00:00

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Readme 6.1 GiB
Languages
JavaScript 32.3%
C++ 25.4%
HTML 21.1%
C 10.8%
Python 2.8%
Other 7.1%