Chromium Code Reviews| 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 ce03c4bfa78969fa3619ba513b29a9a595996973..8352fccfa937aa6d1ac5c1cf07848524214419a3 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -924,6 +924,12 @@ |
| "description": "Loading priority of a resource request." |
| }, |
| { |
| + "id": "SameSite", |
|
dgozman
2016/08/16 18:56:59
Let's call this CookieSameSite.
allada
2016/08/16 21:30:56
Done.
|
| + "type": "string", |
| + "enum": ["Strict", "Lax"], |
| + "description": "Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies" |
| + }, |
| + { |
| "id": "ResourceTiming", |
| "type": "object", |
| "description": "Timing information for the request.", |
| @@ -1112,12 +1118,12 @@ |
| { "name": "value", "type": "string", "description": "Cookie value." }, |
| { "name": "domain", "type": "string", "description": "Cookie domain." }, |
| { "name": "path", "type": "string", "description": "Cookie path." }, |
| - { "name": "expires", "type": "number", "description": "Cookie expires." }, |
| + { "name": "expires", "type": "number", "description": "Cookie expiration date as the number of seconds since the UNIX epoch." }, |
| { "name": "size", "type": "integer", "description": "Cookie size." }, |
| { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." }, |
| { "name": "secure", "type": "boolean", "description": "True if cookie is secure." }, |
| { "name": "session", "type": "boolean", "description": "True in case of session cookie." }, |
| - { "name": "sameSite", "type": "string", "optional": true, "enum": ["Strict", "Lax"], "description": "Represents the cookies' 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies" } |
| + { "name": "sameSite", "$ref": "SameSite", "optional": true, "description": "Cookie SameSite type." } |
| ], |
| "experimental": true |
| } |
| @@ -1239,6 +1245,27 @@ |
| "experimental": 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." }, |
| + { "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": "If omitted, the cookie becomes a host-only cookie." }, |
| + { "name": "path", "type": "string", "optional": true, "description": "Defaults to the path portion of the url parameter." }, |
| + { "name": "secure", "type": "boolean", "optional": true, "description": "Defaults ot false." }, |
| + { "name": "httpOnly", "type": "boolean", "optional": true, "description": "Defaults to false." }, |
| + { "name": "sameSite", "$ref": "SameSite", "optional": true, "description": "Defaults to browser default behavior." }, |
| + { "name": "expirationDate", "$ref": "Timestamp", "optional": true, "description": "If omitted, the cookie becomes a session cookie." } |
| + ], |
| + "returns": [ |
| + { "name": "success", "type": "boolean", "description": "True if successfully set cookie." } |
| + ], |
| + "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.", |
| + "handlers": ["browser"], |
| + "async": true, |
| + "experimental": true |
| + }, |
| + { |
| "name": "canEmulateNetworkConditions", |
| "description": "Tells whether emulation of network conditions is supported.", |
| "returns": [ |