Re-show the tab bar correctly after exitting DOM fullscreen mode by F11 (#576)
This commit is contained in:
parent
48b0fc37b6
commit
9f721f5be2
@ -4813,16 +4813,17 @@ TreeStyleTabBrowser.prototype = {
|
||||
onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle()
|
||||
{
|
||||
if (this.position != 'top') {
|
||||
var isEnteringFullScreenMode = !this.window.fullScreen;
|
||||
// entering to the DOM-fullscreen (ex. YouTube Player)
|
||||
if (this.document.mozFullScreen) {
|
||||
if (this.document.mozFullScreen && isEnteringFullScreenMode) {
|
||||
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
||||
}
|
||||
else {
|
||||
if (this.document.documentElement.getAttribute(this.kDOM_FULLSCREEN_ACTIVATED) != 'true') {
|
||||
if (this.window.fullScreen)
|
||||
this.autoHide.endForFullScreen();
|
||||
else
|
||||
if (isEnteringFullScreenMode)
|
||||
this.autoHide.startForFullScreen();
|
||||
else
|
||||
this.autoHide.endForFullScreen();
|
||||
}
|
||||
this.removeTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user