aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/webdriver_msg.rs
diff options
context:
space:
mode:
authorDavid Raifaizen <d-raif@hotmail.com>2016-07-25 20:34:47 -0400
committerDavid Raifaizen <d-raif@hotmail.com>2016-07-25 22:28:04 -0400
commit2475dc1d21343e7cdda8b77be87be4484ee0f15a (patch)
treeb1a1230b9bfd48d1e85598286061c0d48ed4e755 /components/script_traits/webdriver_msg.rs
parent4b78b9adab916cc4fdde6248e785030b79f406da (diff)
downloadservo-2475dc1d21343e7cdda8b77be87be4484ee0f15a.tar.gz
servo-2475dc1d21343e7cdda8b77be87be4484ee0f15a.zip
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.
Diffstat (limited to 'components/script_traits/webdriver_msg.rs')
-rw-r--r--components/script_traits/webdriver_msg.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script_traits/webdriver_msg.rs b/components/script_traits/webdriver_msg.rs
index 0694c97f29d..09d3c9e9e1c 100644
--- a/components/script_traits/webdriver_msg.rs
+++ b/components/script_traits/webdriver_msg.rs
@@ -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>;