From c224b26066f801a77e0c87f4c824597061d96f51 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 23 Jul 2015 12:18:59 +0900 Subject: [PATCH] Revert "Repair fullscreen detection. Fixes #903" This reverts commit 5958766997362c151da3f038afbb0ae67c3d7e75. It breaks Firefox 39 and older versions. --- modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index 8398a9d8..d91f39d2 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -5123,7 +5123,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle() { if (this.position != 'top') { - var isEnteringFullScreenMode = this.window.fullScreen; + var isEnteringFullScreenMode = !this.window.fullScreen; // entering to the DOM-fullscreen (ex. YouTube Player) if (this.document.mozFullScreen && isEnteringFullScreenMode) { this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);