diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-10-14 10:22:29 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-10-15 07:11:31 +1000 |
commit | ed72e5766be098d901e0c39324ce884dc45bf7c6 (patch) | |
tree | b2cf68c8ec39e47cf5bcc9dbe47113e6750ca7e5 /components/script/webdriver_handlers.rs | |
parent | bc58cd2de05b371f641051eb1038cd29e36bbb01 (diff) | |
download | servo-ed72e5766be098d901e0c39324ce884dc45bf7c6.tar.gz servo-ed72e5766be098d901e0c39324ce884dc45bf7c6.zip |
Remove webdriver use of SubpageId
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index 15b31ff63e7..c48240d5d9d 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -17,7 +17,7 @@ use ipc_channel::ipc::IpcSender; use js::jsapi::JSContext; use js::jsapi::{HandleValue, RootedValue}; use js::jsval::UndefinedValue; -use msg::constellation_msg::{PipelineId, SubpageId}; +use msg::constellation_msg::PipelineId; use msg::webdriver_msg::{WebDriverFrameId, WebDriverJSError, WebDriverJSResult, WebDriverJSValue}; use page::Page; use script_task::get_page; @@ -85,7 +85,7 @@ pub fn handle_execute_async_script(page: &Rc<Page>, pub fn handle_get_frame_id(page: &Rc<Page>, pipeline: PipelineId, webdriver_frame_id: WebDriverFrameId, - reply: IpcSender<Result<Option<(PipelineId, SubpageId)>, ()>>) { + reply: IpcSender<Result<Option<PipelineId>, ()>>) { let window = match webdriver_frame_id { WebDriverFrameId::Short(_) => { // This isn't supported yet @@ -108,7 +108,7 @@ pub fn handle_get_frame_id(page: &Rc<Page>, } }; - let frame_id = window.map(|x| x.and_then(|x| x.r().parent_info())); + let frame_id = window.map(|x| x.map(|x| x.r().pipeline())); reply.send(frame_id).unwrap() } |