From 66092fae61f14ff6d2c7fa7130a05d24bd1b51d7 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Fri, 28 Oct 2016 12:16:36 +0100 Subject: [PATCH] Bug 1313634 - Fix undefined variables issues in cookies.js that lead to the cookies window not updating properly when open. r=jaws MozReview-Commit-ID: RBhuCbjrYT --- browser/components/preferences/cookies.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/components/preferences/cookies.js b/browser/components/preferences/cookies.js index d5e472309ed0..26389254faee 100644 --- a/browser/components/preferences/cookies.js +++ b/browser/components/preferences/cookies.js @@ -127,10 +127,10 @@ var gCookiesWindow = { var rowIndex = 0; var cookieItem = null; if (!this._view._filtered) { - for (let host of this._hostsOrder) { // (var host in this._hosts) { + for (let host of this._hostOrder) { ++rowIndex; var hostItem = this._hosts[host]; - if (this._hostOrder[i] == strippedHost) { // host == strippedHost) { + if (host == strippedHost) { // Host matches, look for the cookie within this Host collection // and update its data for (let currCookie of hostItem.cookies) { @@ -888,7 +888,7 @@ var gCookiesWindow = { // Save open states this._openIndices = []; - for (i = 0; i < this._view.rowCount; ++i) { + for (let i = 0; i < this._view.rowCount; ++i) { var item = this._view._getItemAtIndex(i); if (item && item.container && item.open) this._openIndices.push(i);