Bug 1048622 - Fix 'assignment to undefined variable' warnings in nsBrowserContentHandler.js. r=gavin
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Tue, 05 Aug 2014 06:47:17 -0700
changeset 197851 87fd6bec2c8ac3b7292215ae5bccf8e66bff1d2b
parent 197850 da0ef2bd67b4c93f0dfbc16c30c82fe0c0d5a9f9
child 197852 117d151b6d764d6f7b543fa2dc8b9e9738ba5270
push id47244
push userbirunthan@mohanathas.com
push dateTue, 05 Aug 2014 13:52:37 +0000
treeherdermozilla-inbound@87fd6bec2c8a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs1048622
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1048622 - Fix 'assignment to undefined variable' warnings in nsBrowserContentHandler.js. r=gavin
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -777,19 +777,17 @@ nsDefaultCommandLineHandler.prototype = 
         var uri = resolveURIInternal(cmdLine, ar);
         urilist.push(uri);
       }
     }
     catch (e) {
       Components.utils.reportError(e);
     }
 
-    count = cmdLine.length;
-
-    for (i = 0; i < count; ++i) {
+    for (let i = 0; i < cmdLine.length; ++i) {
       var curarg = cmdLine.getArgument(i);
       if (curarg.match(/^-/)) {
         Components.utils.reportError("Warning: unrecognized command line flag " + curarg + "\n");
         // To emulate the pre-nsICommandLine behavior, we ignore
         // the argument after an unrecognized flag.
         ++i;
       } else {
         try {