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

Unified Diff: Source/devtools/front_end/components_lazy/CookiesTable.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 | « LayoutTests/inspector/cookie-resource-match.html ('k') | Source/devtools/front_end/sdk/CookieParser.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/components_lazy/CookiesTable.js
diff --git a/Source/devtools/front_end/components_lazy/CookiesTable.js b/Source/devtools/front_end/components_lazy/CookiesTable.js
index 051f61f49e9a743e4a3ece08482f7a01087f3130..44dae03a63bafdccec4e9041166b18816aecdebd 100644
--- a/Source/devtools/front_end/components_lazy/CookiesTable.js
+++ b/Source/devtools/front_end/components_lazy/CookiesTable.js
@@ -50,7 +50,8 @@ WebInspector.CookiesTable = function(expandable, refreshCallback, selectedCallba
{id: "expires", title: WebInspector.UIString("Expires / Max-Age"), sortable: true, weight: 7},
{id: "size", title: WebInspector.UIString("Size"), sortable: true, align: WebInspector.DataGrid.Align.Right, weight: 7},
{id: "httpOnly", title: WebInspector.UIString("HTTP"), sortable: true, align: WebInspector.DataGrid.Align.Center, weight: 7},
- {id: "secure", title: WebInspector.UIString("Secure"), sortable: true, align: WebInspector.DataGrid.Align.Center, weight: 7}
+ {id: "secure", title: WebInspector.UIString("Secure"), sortable: true, align: WebInspector.DataGrid.Align.Center, weight: 7},
+ {id: "firstPartyOnly", title: WebInspector.UIString("First-Party"), sortable: true, align: WebInspector.DataGrid.Align.Center, weight: 7}
];
if (readOnly)
@@ -143,7 +144,7 @@ WebInspector.CookiesTable.prototype = {
for (var i = 0; i < this._data.length; ++i) {
var item = this._data[i];
if (item.folderName) {
- var groupData = {name: item.folderName, value: "", domain: "", path: "", expires: "", size: this._totalSize(item.cookies), httpOnly: "", secure: ""};
+ var groupData = {name: item.folderName, value: "", domain: "", path: "", expires: "", size: this._totalSize(item.cookies), httpOnly: "", secure: "", firstPartyOnly: ""};
var groupNode = new WebInspector.DataGridNode(groupData);
groupNode.selectable = true;
this._dataGrid.rootNode().appendChild(groupNode);
@@ -226,6 +227,7 @@ WebInspector.CookiesTable.prototype = {
case "size": comparator = numberCompare.bind(null, WebInspector.Cookie.prototype.size); break;
case "httpOnly": comparator = compareTo.bind(null, WebInspector.Cookie.prototype.httpOnly); break;
case "secure": comparator = compareTo.bind(null, WebInspector.Cookie.prototype.secure); break;
+ case "firstPartyOnly": comparator = compareTo.bind(null, WebInspector.Cookie.prototype.firstPartyOnly); break;
default: compareTo.bind(null, WebInspector.Cookie.prototype.name);
}
@@ -259,6 +261,7 @@ WebInspector.CookiesTable.prototype = {
const checkmark = "\u2713";
data.httpOnly = (cookie.httpOnly() ? checkmark : "");
data.secure = (cookie.secure() ? checkmark : "");
+ data.firstPartyOnly = (cookie.firstPartyOnly() ? checkmark : "");
var node = new WebInspector.DataGridNode(data);
node.cookie = cookie;
« no previous file with comments | « LayoutTests/inspector/cookie-resource-match.html ('k') | Source/devtools/front_end/sdk/CookieParser.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698