Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2221093003: [Devtools] Backend support for setCookie (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: backend changes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index d4421424d10881a3da18992ade69f5798072a1be..2b6d3b73ba87a0f5a124b78de2080dff9cb66630 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -1239,6 +1239,24 @@
"hidden": true
},
{
+ "name": "setCookie",
+ "parameters": [
+ { "name": "url", "type": "string", "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. If host permissions for this URL are not specified in the manifest file, the API call will fail." },
dgozman 2016/08/09 01:07:25 Let's move descriptions to Cookie object, except f
allada 2016/08/10 02:46:54 Done.
+ { "name": "name", "type": "string", "description": "The name of the cookie." },
+ { "name": "value", "type": "string", "description": "The value of the cookie." },
+ { "name": "domain", "type": "string", "optional": true, "description": "The domain of the cookie. If omitted, the cookie becomes a host-only cookie." },
+ { "name": "path", "type": "string", "optional": true, "description": "The path of the cookie. Defaults to the path portion of the url parameter." },
+ { "name": "secure", "type": "boolean", "optional": true, "description": "Weather the cookie should be marked as Secure. Defaults ot false." },
+ { "name": "httpOnly", "type": "boolean", "optional": true, "description": "Weather the cookie should be marked HttpOnly. Defaults to false." },
+ { "name": "sameSite", "type": "string", "enum": ["no_restriction", "lax", "strict"], "optional": true, "description": "The cookie's same-site status: defaults to 'no_restriction'." },
dgozman 2016/08/09 01:07:25 We should extract SameSite now and use it both in
allada 2016/08/10 02:46:54 Done.
+ { "name": "expirationDate", "$ref": "Timestamp", "optional": true, "description": "The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie." }
+ ],
+ "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.",
+ "handlers": ["browser"],
+ "async": true,
+ "hidden": true
+ },
+ {
"name": "canEmulateNetworkConditions",
"description": "Tells whether emulation of network conditions is supported.",
"returns": [

Powered by Google App Engine
This is Rietveld 408576698