Bug 1185329 Fix fullscreen bustage from bug 1161802 r=Ratty a=IanN
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Tue, 18 Aug 2015 08:32:16 +0100
changeset 22858 7e06f6bd75731b929f5a9b2b5d429898503a1b50
parent 22857 4cb7d9c42615791161be03903ad682da67c15272
child 22859 92da90a0a86ece27bae7286f6ba4f91301ced368
push id1446
push userneil@parkwaycc.co.uk
push dateTue, 18 Aug 2015 07:32:22 +0000
treeherdercomm-beta@7e06f6bd7573 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, IanN
bugs1185329, 1161802
Bug 1185329 Fix fullscreen bustage from bug 1161802 r=Ratty a=IanN a=ewong for checkin to a CLOSED TREE
suite/browser/fullScreen.js
--- a/suite/browser/fullScreen.js
+++ b/suite/browser/fullScreen.js
@@ -2,17 +2,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 var FullScreen =
 {
   toggle: function()
   {
-    var show = window.fullScreen;
+    var show = !window.fullScreen;
     // show/hide all menubars, toolbars, and statusbars (except the full screen toolbar)
     this.showXULChrome("toolbar", show);
     this.showXULChrome("statusbar", show);
 
     var toolbox = getNavToolbox();
     if (show)
       toolbox.removeAttribute("inFullscreen");
     else