Revert "Repair fullscreen detection. Fixes #903"
This reverts commit 5958766997362c151da3f038afbb0ae67c3d7e75. It breaks Firefox 39 and older versions.
This commit is contained in:
parent
68cbf8456d
commit
c224b26066
@ -5123,7 +5123,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle()
|
onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle()
|
||||||
{
|
{
|
||||||
if (this.position != 'top') {
|
if (this.position != 'top') {
|
||||||
var isEnteringFullScreenMode = this.window.fullScreen;
|
var isEnteringFullScreenMode = !this.window.fullScreen;
|
||||||
// entering to the DOM-fullscreen (ex. YouTube Player)
|
// entering to the DOM-fullscreen (ex. YouTube Player)
|
||||||
if (this.document.mozFullScreen && isEnteringFullScreenMode) {
|
if (this.document.mozFullScreen && isEnteringFullScreenMode) {
|
||||||
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user