-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
servoshell: Unset webdriver_port when scheduling shutdown
#40974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
| /// 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>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Rc was likely wrongly added when copy-pasting the
servo/ports/servoshell/running_app_state.rs
Line 163 in f0ed750
| pub(crate) achieved_stable_image: Rc<Cell<bool>>, |
|
🔨 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. |
mrobinson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
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)