Repository navigation
script: Improve spec compliance of Document::set_ready_state - #47450
Merged
mrobinson merged 1 commit intoAug 23, 2026
Merged
Conversation
simonwuelker
approved these changes
Aug 22, 2026
mrobinson
force-pushed
the
improve-spec-compliance-of-set-ready-state
branch
from
August 22, 2026 22:04
d3d9509 to
11453b1
Compare
mrobinson
enabled auto-merge
August 22, 2026 22:05
mrobinson
force-pushed
the
improve-spec-compliance-of-set-ready-state
branch
2 times, most recently
from
August 23, 2026 08:35
245717e to
dab8851
Compare
This changes makes some minor changes to `Document::set_ready_state` to make it match the specification steps for "update-the-current-document-readiness". Notably, because `Document`'s can start in the `Loaded` state, to match the specification that work has to be done by the caller. This should guard against times when `set_ready_state` is called more than once for the same state, which will be useful when implementing full support for `WebView::stop`. One very minor behavioral improvement: `about:blank` documents now do not transition from `Complete` to `Loading`. Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
improve-spec-compliance-of-set-ready-state
branch
from
August 23, 2026 08:37
dab8851 to
c0cbf54
Compare
TimvdLippe
added a commit
to TimvdLippe/servo
that referenced
this pull request
Aug 23, 2026
Signed-off-by: Tim van der Lippe <[email protected]>
TimvdLippe
added a commit
to TimvdLippe/servo
that referenced
this pull request
Aug 23, 2026
Signed-off-by: Tim van der Lippe <[email protected]>
TimvdLippe
added a commit
to TimvdLippe/servo
that referenced
this pull request
Aug 26, 2026
Signed-off-by: Tim van der Lippe <[email protected]>
mrobinson
pushed a commit
to TimvdLippe/servo
that referenced
this pull request
Aug 27, 2026
Signed-off-by: Tim van der Lippe <[email protected]>
mrobinson
pushed a commit
to TimvdLippe/servo
that referenced
this pull request
Aug 27, 2026
Signed-off-by: Tim van der Lippe <[email protected]>
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
…#47450) This changes makes some minor changes to `Document::set_ready_state` to make it match the specification steps for "update-the-current-document-readiness". Notably, because `Document`'s can start in the `Loaded` state, to match the specification that work has to be done by the caller. This should guard against times when `set_ready_state` is called more than once for the same state, which will be useful when implementing full support for `WebView::stop`. One very minor behavioral improvement: `about:blank` documents now do not transition from `Complete` to `Loading`. Testing: This causes one WPT subtest to start passing. Signed-off-by: Martin Robinson <[email protected]>
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.
This changes makes some minor changes to
Document::set_ready_statetomake it match the specification steps for
"update-the-current-document-readiness". Notably, because
Document'scan start in the
Loadedstate, to match the specification that workhas to be done by the caller. This should guard against times when
set_ready_stateis called more than once for the same state, whichwill be useful when implementing full support for
WebView::stop.One very minor behavioral improvement:
about:blankdocuments now donot transition from
CompletetoLoading.Testing: This causes one WPT subtest to start passing.