mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement timeout for url load from WebDriver.
This commit is contained in:
parent
ee22ae2635
commit
22c06307b8
4 changed files with 23 additions and 11 deletions
|
@ -19,7 +19,7 @@ use std::collections::HashMap;
|
|||
use std::sync::mpsc::{channel, Sender, Receiver};
|
||||
use style::viewport::ViewportConstraints;
|
||||
use url::Url;
|
||||
use webdriver_msg::{WebDriverScriptCommand, LoadComplete};
|
||||
use webdriver_msg::{WebDriverScriptCommand, LoadStatus};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct ConstellationChan(pub Sender<Msg>);
|
||||
|
@ -328,7 +328,7 @@ impl MozBrowserEvent {
|
|||
}
|
||||
|
||||
pub enum WebDriverCommandMsg {
|
||||
LoadUrl(PipelineId, LoadData, Sender<LoadComplete>),
|
||||
LoadUrl(PipelineId, LoadData, Sender<LoadStatus>),
|
||||
ScriptCommand(PipelineId, WebDriverScriptCommand),
|
||||
TakeScreenshot(PipelineId, Sender<Option<png::Image>>)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue