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

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

Issue 1019253002: Support 'First-Party-Only' cookies in devtools. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « 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: Source/devtools/front_end/sdk/CookieParser.js
diff --git a/Source/devtools/front_end/sdk/CookieParser.js b/Source/devtools/front_end/sdk/CookieParser.js
index cbc71b54249ce531f273430d66337b031281dd4f..01c4d5822c850a7764df1a5483cd747421359c6a 100644
--- a/Source/devtools/front_end/sdk/CookieParser.js
+++ b/Source/devtools/front_end/sdk/CookieParser.js
@@ -260,6 +260,14 @@ WebInspector.Cookie.prototype = {
/**
* @return {boolean}
*/
+ firstPartyOnly: function ()
+ {
+ return "first-party-only" in this._attributes;
+ },
+
+ /**
+ * @return {boolean}
+ */
session: function()
{
// RFC 2965 suggests using Discard attribute to mark session cookies, but this does not seem to be widely used.
@@ -420,6 +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");
cookie.setSize(protocolCookie["size"]);
return cookie;
}
« no previous file with comments | « 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