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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js

Issue 1615773005: Rename first-party-only cookies to same-site cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests. Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js b/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
index 9b2805ae1204373ec6af0f6a1d4c241d26ca70a2..1bea7702ad4e362dc36dd8bd4b13037c282d4dd4 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
@@ -260,9 +260,9 @@ WebInspector.Cookie.prototype = {
/**
* @return {boolean}
*/
- firstPartyOnly: function ()
+ sameSite: function ()
{
- return "first-party-only" in this._attributes;
+ return "samesite" in this._attributes;
},
/**
@@ -428,8 +428,8 @@ WebInspector.Cookies._parseProtocolCookie = function(target, protocolCookie)
cookie.addAttribute("httpOnly");
if (protocolCookie["secure"])
cookie.addAttribute("secure");
- if (protocolCookie["firstPartyOnly"])
- cookie.addAttribute("first-party-only");
+ if (protocolCookie["sameSite"])
+ cookie.addAttribute("sameSite");
cookie.setSize(protocolCookie["size"]);
return cookie;
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698