diff options
author | Dan Robertson <drobertson@tripwire.com> | 2016-06-25 20:06:17 +0000 |
---|---|---|
committer | Dan Robertson <drobertson@tripwire.com> | 2016-06-25 22:24:35 +0000 |
commit | 246723114fa54f82643bad827393cf58f1fdeea9 (patch) | |
tree | 31630771bcea6e8d67725beabd8b34a22572aed4 /components/script/script_thread.rs | |
parent | 7d978e7b3d6b41b234f7c9b4051b746a1fbeddee (diff) | |
download | servo-246723114fa54f82643bad827393cf58f1fdeea9.tar.gz servo-246723114fa54f82643bad827393cf58f1fdeea9.zip |
Use common cookie struct add cookie webdriver cmds
One cookie struct to rule them all. One struct to represent them.
One cookie struct to bind them all, and through the IPC carry them.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index a8e81846717..6697f334696 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1059,6 +1059,8 @@ impl ScriptThread { fn handle_webdriver_msg(&self, pipeline_id: PipelineId, msg: WebDriverScriptCommand) { let context = self.root_browsing_context(); match msg { + WebDriverScriptCommand::AddCookie(params, reply) => + webdriver_handlers::handle_add_cookie(&context, pipeline_id, params, reply), WebDriverScriptCommand::ExecuteScript(script, reply) => webdriver_handlers::handle_execute_script(&context, pipeline_id, script, reply), WebDriverScriptCommand::FindElementCSS(selector, reply) => @@ -1069,6 +1071,10 @@ impl ScriptThread { webdriver_handlers::handle_focus_element(&context, pipeline_id, element_id, reply), WebDriverScriptCommand::GetActiveElement(reply) => webdriver_handlers::handle_get_active_element(&context, pipeline_id, reply), + WebDriverScriptCommand::GetCookies(reply) => + webdriver_handlers::handle_get_cookies(&context, pipeline_id, reply), + WebDriverScriptCommand::GetCookie(name, reply) => + webdriver_handlers::handle_get_cookie(&context, pipeline_id, name, reply), WebDriverScriptCommand::GetElementTagName(node_id, reply) => webdriver_handlers::handle_get_name(&context, pipeline_id, node_id, reply), WebDriverScriptCommand::GetElementAttribute(node_id, name, reply) => |