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

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

Issue 2726823004: Show 'inactive' cookies (fix after https://codereview.chromium.org/2714913002 ). (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/cookie_table/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/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 1fc2505c14d856e77a39158c2a1751130ba48eae..e910a7e9676327ab04221197e55e02dd5a698740 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
@@ -88,13 +88,15 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView {
this._totalSize = allCookies.reduce((size, cookie) => size + cookie.size(), 0);
if (!this._cookiesTable) {
- 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),
- this._deleteCookie.bind(this), domain);
+ this._deleteCookie.bind(this));
}
+ const parsedURL = this._cookieDomain.asParsedURL();
+ const host = parsedURL ? parsedURL.host : '';
+ this._cookiesTable.setCookieDomain(host);
+
var shownCookies = this.filter(allCookies, cookie => `${cookie.name()} ${cookie.value()} ${cookie.domain()}`);
this._cookiesTable.setCookies(shownCookies);
this._cookiesTable.show(this.element);
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698