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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js

Issue 1827743002: SameSite: Teach devtools about the new 'samesite' syntax. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback+Rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 data.expires = Number.secondsToString(parseInt(cookie.maxAge(), 10)); 254 data.expires = Number.secondsToString(parseInt(cookie.maxAge(), 10));
255 else if (cookie.expires()) 255 else if (cookie.expires())
256 data.expires = new Date(cookie.expires()).toISOString(); 256 data.expires = new Date(cookie.expires()).toISOString();
257 else 257 else
258 data.expires = WebInspector.UIString("Session"); 258 data.expires = WebInspector.UIString("Session");
259 } 259 }
260 data.size = cookie.size(); 260 data.size = cookie.size();
261 const checkmark = "\u2713"; 261 const checkmark = "\u2713";
262 data.httpOnly = (cookie.httpOnly() ? checkmark : ""); 262 data.httpOnly = (cookie.httpOnly() ? checkmark : "");
263 data.secure = (cookie.secure() ? checkmark : ""); 263 data.secure = (cookie.secure() ? checkmark : "");
264 data.sameSite = (cookie.sameSite() ? checkmark : ""); 264 data.sameSite = cookie.sameSite() != WebInspector.Cookie.SameSiteMode.No Restriction ? cookie.sameSite() : "";
265 265
266 var node = new WebInspector.DataGridNode(data); 266 var node = new WebInspector.DataGridNode(data);
267 node.cookie = cookie; 267 node.cookie = cookie;
268 node.selectable = true; 268 node.selectable = true;
269 return node; 269 return node;
270 }, 270 },
271 271
272 _onDeleteCookie: function(node) 272 _onDeleteCookie: function(node)
273 { 273 {
274 var cookie = node.cookie; 274 var cookie = node.cookie;
275 var neighbour = node.traverseNextNode() || node.traversePreviousNode(); 275 var neighbour = node.traverseNextNode() || node.traversePreviousNode();
276 if (neighbour) 276 if (neighbour)
277 this._nextSelectedCookie = neighbour.cookie; 277 this._nextSelectedCookie = neighbour.cookie;
278 cookie.remove(); 278 cookie.remove();
279 this._refresh(); 279 this._refresh();
280 }, 280 },
281 281
282 _refresh: function() 282 _refresh: function()
283 { 283 {
284 if (this._refreshCallback) 284 if (this._refreshCallback)
285 this._refreshCallback(); 285 this._refreshCallback();
286 }, 286 },
287 287
288 __proto__: WebInspector.VBox.prototype 288 __proto__: WebInspector.VBox.prototype
289 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698