servoshell: Unset webdriver_port when scheduling shutdown#40974
Merged
yezhizhen merged 1 commit intoservo:mainfrom Dec 1, 2025
Merged
servoshell: Unset webdriver_port when scheduling shutdown#40974yezhizhen merged 1 commit intoservo:mainfrom
webdriver_port when scheduling shutdown#40974yezhizhen merged 1 commit intoservo:mainfrom
Conversation
Signed-off-by: Euclid Ye <[email protected]>
yezhizhen
commented
Dec 1, 2025
| /// Whether or not program exit has been triggered. This means that all windows | ||
| /// will be destroyed and shutdown will start at the end of the current event loop. | ||
| exit_scheduled: Rc<Cell<bool>>, | ||
| exit_scheduled: Cell<bool>, |
Member
Author
There was a problem hiding this comment.
This Rc was likely wrongly added when copy-pasting the
servo/ports/servoshell/running_app_state.rs
Line 163 in f0ed750
|
🔨 Triggering try run (#19812186282) for Linux (WPT) |
|
Test results for linux-wpt from try job (#19812186282): Flaky unexpected result (40)
Stable unexpected results that are known to be intermittent (25)
|
|
✨ Try run (#19812186282) succeeded. |
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 is the minimal possible changes after I've tried several approaches. The original problem is tricky after multi-window support, as we want to shutdown normally while not panic after no window is open to support Servodriver.
Testing:
servo/tests/wpt/tests/webdriver/tests/classic/close_window/close.py
Line 87 in f0ed750
Fixes: #40972 (comment)