aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorEuclid Ye <yezhizhenjiakang@gmail.com>2025-04-04 13:24:47 +0800
committerGitHub <noreply@github.com>2025-04-04 05:24:47 +0000
commit4bad7c0a5d8e19eabbe89ee70b21a5ece0e3c007 (patch)
tree573e6deace934548565d82deee5b8614ff71eb7b /components/script/script_thread.rs
parente1de46c69131ae717d49228942feba04c955f775 (diff)
downloadservo-4bad7c0a5d8e19eabbe89ee70b21a5ece0e3c007.tar.gz
servo-4bad7c0a5d8e19eabbe89ee70b21a5ece0e3c007.zip
Webdriver delete cookie (#36306)
1. Implement `WebDriverCommand::DeleteCookie` 2. Remove unnecessary clone for `WebDriverCommand::GetNamedCookie` Fixes: #36287 --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 35b45fee6dd..c3356c5e72b 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2104,6 +2104,9 @@ impl ScriptThread {
WebDriverScriptCommand::DeleteCookies(reply) => {
webdriver_handlers::handle_delete_cookies(&documents, pipeline_id, reply)
},
+ WebDriverScriptCommand::DeleteCookie(name, reply) => {
+ webdriver_handlers::handle_delete_cookie(&documents, pipeline_id, name, reply)
+ },
WebDriverScriptCommand::FindElementCSS(selector, reply) => {
webdriver_handlers::handle_find_element_css(
&documents,