author | Birunthan Mohanathas <birunthan@mohanathas.com> |
Tue, 05 Aug 2014 06:47:17 -0700 | |
changeset 197851 | 87fd6bec2c8ac3b7292215ae5bccf8e66bff1d2b |
parent 197850 | da0ef2bd67b4c93f0dfbc16c30c82fe0c0d5a9f9 |
child 197852 | 117d151b6d764d6f7b543fa2dc8b9e9738ba5270 |
push id | 47244 |
push user | birunthan@mohanathas.com |
push date | Tue, 05 Aug 2014 13:52:37 +0000 |
treeherder | mozilla-inbound@87fd6bec2c8a [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | gavin |
bugs | 1048622 |
milestone | 34.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
|
--- 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 {