mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Webdriver: Call webdriver handler on headless EventLoop (#37623)
Previously, `handle_webdriver_messages` only called in `winit::ApplictionHandler`. This means the webdriver command only looped in headed (desktop) event loop. Testing: this will fix webdriver test on headless `test-wpt`, which widely used in the CI. Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
parent
8140f00988
commit
795367c751
2 changed files with 2 additions and 1 deletions
|
@ -316,7 +316,7 @@ impl App {
|
|||
}
|
||||
}
|
||||
|
||||
fn handle_webdriver_messages(&mut self) {
|
||||
pub fn handle_webdriver_messages(&self) {
|
||||
let AppState::Running(running_state) = &self.state else {
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -93,6 +93,7 @@ impl EventsLoop {
|
|||
app.init(None);
|
||||
loop {
|
||||
self.sleep(flag, condvar);
|
||||
app.handle_webdriver_messages();
|
||||
if !app.handle_events_with_headless() {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue