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

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: 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 | « AUTHORS ('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/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..45b3271f84836d982278f3f725594273a7e59d51 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
@@ -165,6 +165,9 @@ CookieTable.CookiesTable = class extends UI.VBox {
* @return {?SDK.Cookie}
*/
_findSelectedCookie(selectionCookies, cookies) {
+ if (!cookies)
eostroukhov 2017/03/20 17:34:59 Please fix JSDoc comment above to indicate that co
+ return null;
+
var current = selectionCookies.current;
var foundCurrent = cookies.find(cookie => this._isSameCookie(cookie, current));
if (foundCurrent)
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698