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

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

Issue 2567873002: DevTools: Add ability to add and edit cookies (Closed)
Patch Set: Code review fixes. Created 4 years 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 c3346448c25157813f11d2f4b6228260a7e842bb..66fc1acd58b3c16007e15df3152f06694213c7b9 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js
@@ -103,8 +103,9 @@ Resources.CookieItemsView = class extends UI.SimpleView {
}
if (!this._cookiesTable) {
+ const url = new URL(this._cookieDomain);
this._cookiesTable =
- new Components.CookiesTable(false, this._update.bind(this), this._showDeleteButton.bind(this));
+ new Components.CookiesTable(false, this._update.bind(this), this._showDeleteButton.bind(this), url.hostname);
}
this._cookiesTable.setCookies(this._cookies);

Powered by Google App Engine
This is Rietveld 408576698