Bug 830652 - Consume the -private-window command line argument in per-window PB builds; r=dolske a=akeybl
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 15 Jan 2013 20:27:27 -0500
changeset 127159 e84c4fb705fdb6d1574e861ff9c2f04ab052f5ea
parent 127158 f1fb362c0b925ff23084dc21daeaaf49047b88c3
child 127160 12f52471747dcff1059b90bd0c0dd5c158a13df7
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske, akeybl
bugs830652
milestone20.0a2
Bug 830652 - Consume the -private-window command line argument in per-window PB builds; r=dolske a=akeybl
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -507,17 +507,17 @@ nsBrowserContentHandler.prototype = {
     }
     if (cmdLine.handleFlag("preferences", false)) {
       openPreferences();
       cmdLine.preventDefault = true;
     }
     if (cmdLine.handleFlag("silent", false))
       cmdLine.preventDefault = true;
 #ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
-    if (cmdLine.findFlag("private-window", false) >= 0) {
+    if (cmdLine.handleFlag("private-window", false)) {
       openWindow(null, this.chromeURL, "_blank",
         "chrome,dialog=no,private,all" + this.getFeatures(cmdLine),
         "about:privatebrowsing");
       cmdLine.preventDefault = true;
     }
 #else
     if (cmdLine.findFlag("private-toggle", false) >= 0)
       cmdLine.preventDefault = true;