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

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 - part 5. 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 42c424c9b6fe536cbc47372708efb6e8cc9e841f..0aedf80124a093f106ba9681a9109f51b11758b5 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,10 @@ Resources.CookieItemsView = class extends UI.SimpleView {
}
if (!this._cookiesTable) {
+ const parsedURL = this._cookieDomain.asParsedURL();
+ const domain = parsedURL ? parsedURL.domain() : '';
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), domain);
}
this._cookiesTable.setCookies(this._cookies);

Powered by Google App Engine
This is Rietveld 408576698