Bug 561724 - Port Bug 553305 [Properly declare 'i'] to SeaMonkey. r=Neil, sr=Neil COMM_1_9_2_BASE
authorMisak Khachatryan <misak.bugzilla@gmail.com>
Mon, 26 Apr 2010 16:51:30 +0500
changeset 5542 6ba6d8da7a2b3e310faa2dd7b32feb4e90fe180c
parent 5541 c0df81ab60c414712e94863fe3034291c0ef2a04
child 5543 8c4471d502894a066fa92d95a16e76f377aa02c3
push idunknown
push userunknown
push dateunknown
reviewersNeil, Neil
bugs561724, 553305
Bug 561724 - Port Bug 553305 [Properly declare 'i'] to SeaMonkey. r=Neil, sr=Neil
suite/common/src/nsSessionStore.js
--- a/suite/common/src/nsSessionStore.js
+++ b/suite/common/src/nsSessionStore.js
@@ -2301,17 +2301,17 @@ SessionStoreService.prototype = {
   /**
    * Restores cookies
    * @param aCookies
    *        Array of cookie objects
    */
   restoreCookies: function sss_restoreCookies(aCookies) {
     // MAX_EXPIRY should be 2^63-1, but JavaScript can't handle that precision
     var MAX_EXPIRY = Math.pow(2, 62);
-    for (i = 0; i < aCookies.length; i++) {
+    for (let i = 0; i < aCookies.length; i++) {
       var cookie = aCookies[i];
       try {
         cm.add(cookie.host, cookie.path || "", cookie.name || "",
                       cookie.value, !!cookie.secure, !!cookie.httponly, true,
                       "expiry" in cookie ? cookie.expiry : MAX_EXPIRY);
       }
       catch (ex) { Components.utils.reportError(ex); } // don't let a single cookie stop recovering
     }