mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Removed some sources of panic from script thread and devtools, using Option values instead to indicate when a pipeline context is missing where appropriate. Additionally, removed erroneous method get_browsing_context.
This commit is contained in:
parent
4b78b9adab
commit
2475dc1d21
7 changed files with 89 additions and 54 deletions
|
@ -53,7 +53,10 @@ pub enum WebDriverJSValue {
|
|||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverJSError {
|
||||
Timeout,
|
||||
UnknownType
|
||||
UnknownType,
|
||||
/// Occurs when handler received an event message for a layout channel that is not
|
||||
/// associated with the current script thread
|
||||
BrowsingContextNotFound
|
||||
}
|
||||
|
||||
pub type WebDriverJSResult = Result<WebDriverJSValue, WebDriverJSError>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue