| 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);
|
|
|