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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js

Issue 2714913002: DevTools: Fixes to Storage panel inconsistencies (Closed)
Patch Set: more feedback Created 3 years, 10 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
Index: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
index d9ea2970247dca6cb03eb0e6d5a04e6f1957811d..1fc2505c14d856e77a39158c2a1751130ba48eae 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
@@ -74,6 +74,14 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView {
}
/**
+ * @param {!SDK.Cookie} cookie
+ * @param {function()} callback
+ */
+ _deleteCookie(cookie, callback) {
+ this._model.deleteCookie(cookie, callback);
+ }
+
+ /**
* @param {!Array.<!SDK.Cookie>} allCookies
*/
_updateWithCookies(allCookies) {
@@ -83,7 +91,8 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView {
const parsedURL = this._cookieDomain.asParsedURL();
const domain = parsedURL ? parsedURL.host : '';
this._cookiesTable = new CookieTable.CookiesTable(
- this._saveCookie.bind(this), this.refreshItems.bind(this), () => this.setCanDeleteSelected(true), domain);
+ this._saveCookie.bind(this), this.refreshItems.bind(this), () => this.setCanDeleteSelected(true),
+ this._deleteCookie.bind(this), domain);
}
var shownCookies = this.filter(allCookies, cookie => `${cookie.name()} ${cookie.value()} ${cookie.domain()}`);

Powered by Google App Engine
This is Rietveld 408576698