Bug 783795 - locationbar, personalbar, menubar, statusbar, and toolbar are true in a webapp - should be false r=wesj
authorMark Finkle <mfinkle@mozilla.com>
Sat, 13 Oct 2012 11:18:22 -0400
changeset 110290 04e1aafc9d7c4cf5c4ddda280ea5df752ba5f0ef
parent 110289 61fc599bfceca1620357d66ff22029c3b413056d
child 110291 9aa942155c0524b7de09bb07356e1a7e86610258
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerswesj
bugs783795
milestone19.0a1
Bug 783795 - locationbar, personalbar, menubar, statusbar, and toolbar are true in a webapp - should be false r=wesj
mobile/android/components/BrowserCLH.js
--- a/mobile/android/components/BrowserCLH.js
+++ b/mobile/android/components/BrowserCLH.js
@@ -95,17 +95,23 @@ BrowserCLH.prototype = {
       } else {
         let args = {
           url: openURL,
           restoreMode: restoreMode,
           pinned: pinned,
           width: width,
           height: height
         };
-        browserWin = openWindow(null, "chrome://browser/content/browser.xul", "_blank", "chrome,dialog=no,all", args);
+
+        // Make sure webapps do not have: locationbar, personalbar, menubar, statusbar, and toolbar
+        let flags = "chrome,dialog=no";
+        if (!pinned)
+          flags += ",all";
+
+        browserWin = openWindow(null, "chrome://browser/content/browser.xul", "_blank", flags, args);
       }
 
       aCmdLine.preventDefault = true;
     } catch (x) {
       dump("BrowserCLH.handle: " + x);
     }
   },