Repository navigation
Add WPT lifecycle and URL variants to unlock focus navigation tests - #112
Merged
Merged
Conversation
4 of 12 tasks
commit: |
cowboyd
marked this pull request as ready for review
November 30, 2026 15:35
cowboyd
force-pushed
the
dom-event-capture
branch
from
December 1, 2026 18:17
4d6445f to
6a622f3
Compare
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 1, 2026 18:17
9943043 to
5985ac5
Compare
cowboyd
force-pushed
the
dom-event-capture
branch
3 times, most recently
from
December 2, 2026 14:58
cf92360 to
cfea48f
Compare
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 2, 2026 14:58
5985ac5 to
7f583c1
Compare
cowboyd
force-pushed
the
dom-event-capture
branch
from
December 2, 2026 17:26
20c54ea to
d1d80f9
Compare
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 2, 2026 17:26
7f583c1 to
c233ece
Compare
Member
|
@cowboyd when you get a chance can you resolve conflicts? |
43081j
reviewed
Dec 2, 2026
cowboyd
marked this pull request as draft
December 2, 2026 22:21
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
4 times, most recently
from
December 3, 2026 06:17
8760767 to
7bb1c3a
Compare
cowboyd
marked this pull request as ready for review
December 3, 2026 06:20
43081j
reviewed
Dec 3, 2026
43081j
reviewed
Dec 3, 2026
cowboyd
force-pushed
the
wpt-document-lifecycle
branch
from
December 3, 2026 16:44
7bb1c3a to
c58e5c2
Compare
natemoo-re
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Some WPT files choose scenarios through URL variants or register tests from a Window
DOMContentLoadedlistener. The harness now runs each declared variant in a fresh worker with its own document and URL, then delivers document readiness changes, bubblingDOMContentLoaded, and Windowloadthrough the implementation's event system.The UI provides a
Windowimplementation that can initialize any object as aWindow. Then, the harness requires a hook to create not thedocumentbut thewindowpassing the worker'sglobalThisas its argument. This allows us to initialize the global and so preserveglobalThis === window === document.defaultView. This is safe because thescopeis thrown away after each test suite.The lifecycle and URL behavior is needed by later focus-navigation and input-editing PRs, including table-caption navigation cases registered from
DOMContentLoaded.Type of change
AI-generated code disclosure