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

Unified Diff: third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js

Issue 2760013002: DevTools: Fixes regression in cookies tab in Network panel having no output (Closed)
Patch Set: Rebase (I'm now already in the AUTHORS file) Created 3 years, 9 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 | « no previous file | 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/cookie_table/CookiesTable.js
diff --git a/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js b/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js
index 4bb51710c7e9f87027522c90879ab0ceb33de3a2..adf3439b57ebf634e066deb0346f6f97b3d0e162 100644
--- a/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js
+++ b/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js
@@ -161,10 +161,13 @@ CookieTable.CookiesTable = class extends UI.VBox {
/**
* @param {{current: ?SDK.Cookie, neighbor: ?SDK.Cookie}} selectionCookies
- * @param {!Array<!SDK.Cookie>} cookies
+ * @param {?Array<!SDK.Cookie>} cookies
* @return {?SDK.Cookie}
*/
_findSelectedCookie(selectionCookies, cookies) {
+ if (!cookies)
+ return null;
+
var current = selectionCookies.current;
var foundCurrent = cookies.find(cookie => this._isSameCookie(cookie, current));
if (foundCurrent)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698