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()
|
onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle()
|
||||||
{
|
{
|
||||||
if (this.position != 'top') {
|
if (this.position != 'top') {
|
||||||
|
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) {
|
if (this.document.mozFullScreen && isEnteringFullScreenMode) {
|
||||||
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (this.document.documentElement.getAttribute(this.kDOM_FULLSCREEN_ACTIVATED) != 'true') {
|
if (this.document.documentElement.getAttribute(this.kDOM_FULLSCREEN_ACTIVATED) != 'true') {
|
||||||
if (this.window.fullScreen)
|
if (isEnteringFullScreenMode)
|
||||||
this.autoHide.endForFullScreen();
|
|
||||||
else
|
|
||||||
this.autoHide.startForFullScreen();
|
this.autoHide.startForFullScreen();
|
||||||
|
else
|
||||||
|
this.autoHide.endForFullScreen();
|
||||||
}
|
}
|
||||||
this.removeTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED);
|
this.removeTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user