Repository navigation
webdriver: Synchronize navigation state with constellation inside wait - #50183
Merged
Merged
Conversation
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
|
🔨 Triggering try run (#45423878802) for Linux (WPT) |
Contributor
Member
Author
|
Test results for linux-wpt from try job (#45423878802): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (7)
|
|
✨ Try run (#45423878802) succeeded. |
Member
Author
Will check this tomorrow. |
yezhizhen
marked this pull request as draft
November 24, 2026 16:23
Member
Author
This one still not fixed, related to send keys which is separate. |
yezhizhen
marked this pull request as ready for review
November 25, 2026 04:09
jdm
approved these changes
Nov 27, 2026
devin-ai-integration Bot
pushed a commit
to baigojahanzaib/servo
that referenced
this pull request
Nov 27, 2026
servo#50183) A navigation started by script (e.g., from click) could be missed since `wait_for_navigation_to_complete` is decided from a cache local to server. This allows us to remove some duplication, where we keep calling `synchronize_navigation_state` before `wait_for_navigation_to_complete`, which also fixes an edge case: we forgot to do sync here: https://github.com/servo/servo/blob/6de1455c7311cbd1ae3de0a5ff6f5db754cd71f1/components/webdriver_server/lib.rs#L2729-L2732, which runs before each command. The second commit fixes the deadlock: a user prompt pauses load until dismissed, so early return. That would be dismissed soon, as all commands have [handle_any_user_prompts](https://w3c.github.io/webdriver/#dfn-handle-any-user-prompts) step. Testing: Tested locally, and the url assertion mismatch is gone. Fixes: servo#47582 --------- Signed-off-by: Euclid Ye <[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.
A navigation started by script (e.g., from click) could be missed since
wait_for_navigation_to_completeis decided from a cache local to server.This allows us to remove some duplication, where we keep calling
synchronize_navigation_statebefore
wait_for_navigation_to_complete, which also fixes an edge case:we forgot to do sync here:
servo/components/webdriver_server/lib.rs
Lines 2729 to 2732 in 6de1455
The second commit fixes the deadlock: a user prompt pauses load until dismissed, so early return.
That would be dismissed soon, as all commands have handle_any_user_prompts step.
Testing: Tested locally, and the url assertion mismatch is gone.
Fixes: #47582