mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
7d978e7b3d
commit
246723114f
19 changed files with 214 additions and 23 deletions
|
@ -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) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue