aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 17:24:54 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:13 +0200
commit27f100b1d47058b92d0e23d8c1b2e472fb0eafca (patch)
tree2f12c1364fe0b5abb9b7f1405be81e04023193dd /components/script/webdriver_handlers.rs
parentc6ff767625fff00e7c8f41d254c074e8e1e277be (diff)
downloadservo-27f100b1d47058b92d0e23d8c1b2e472fb0eafca.tar.gz
servo-27f100b1d47058b92d0e23d8c1b2e472fb0eafca.zip
Introduce GlobalScope::pipeline_id
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r--components/script/webdriver_handlers.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs
index 03281464765..870b3235d38 100644
--- a/components/script/webdriver_handlers.rs
+++ b/components/script/webdriver_handlers.rs
@@ -19,6 +19,7 @@ use dom::bindings::js::Root;
use dom::bindings::str::DOMString;
use dom::browsingcontext::BrowsingContext;
use dom::element::Element;
+use dom::globalscope::GlobalScope;
use dom::htmlelement::HTMLElement;
use dom::htmliframeelement::HTMLIFrameElement;
use dom::htmlinputelement::HTMLInputElement;
@@ -142,7 +143,7 @@ pub fn handle_get_frame_id(context: &BrowsingContext,
}
};
- let frame_id = window.map(|x| x.map(|x| x.pipeline_id()));
+ let frame_id = window.map(|x| x.map(|x| x.upcast::<GlobalScope>().pipeline_id()));
reply.send(frame_id).unwrap()
}