Hide toolbar related elements completely in the DOM fullscreen mode.
The "inDOMFullscreen" attribute is introduced at Firefox 36 by http://hg.mozilla.org/mozilla-central/rev/3aef39ca3919 and now TST supports only Firefox 38 and newer. So we should use it instead of my custom attribute.
This commit is contained in:
parent
cfca590bc3
commit
036ca2a5d5
@ -77,16 +77,25 @@
|
||||
|
||||
/* tab bar in the DOM-fullscreen mode */
|
||||
|
||||
.tabbrowser-tabs[treestyletab-dom-fullscreen-activated="true"],
|
||||
.tabbrowser-strip[treestyletab-dom-fullscreen-activated="true"],
|
||||
.tabbrowser-strip[treestyletab-dom-fullscreen-activated="true"]+splitter,
|
||||
.treestyletab-tabbar-toolbar[treestyletab-dom-fullscreen-activated="true"],
|
||||
.treestyletab-tabbar-toolbar[treestyletab-dom-fullscreen-activated="true"] > *,
|
||||
tabbrowser[treestyletab-dom-fullscreen-activated="true"][tabcontainer]
|
||||
:root[inDOMFullscreen="true"]
|
||||
.tabbrowser-tabs,
|
||||
:root[inDOMFullscreen="true"]
|
||||
.tabbrowser-strip,
|
||||
:root[inDOMFullscreen="true"]
|
||||
.tabbrowser-strip+splitter,
|
||||
:root[inDOMFullscreen="true"]
|
||||
.treestyletab-tabbar-toolbar,
|
||||
:root[inDOMFullscreen="true"]
|
||||
.treestyletab-tabbar-toolbar > *,
|
||||
:root[inDOMFullscreen="true"]
|
||||
tabbrowser[tabcontainer]
|
||||
.tabbrowser-strip.treestyletab-tabbar-placeholder,
|
||||
tabbrowser[treestyletab-dom-fullscreen-activated="true"][tabcontainer]
|
||||
.tabbrowser-strip.treestyletab-tabbar-placeholder+splitter {
|
||||
visibility: collapse;
|
||||
:root[inDOMFullscreen="true"]
|
||||
tabbrowser[tabcontainer]
|
||||
.tabbrowser-strip.treestyletab-tabbar-placeholder+splitter,
|
||||
:root[inDOMFullscreen="true"]
|
||||
.treestyletab-tabbar-toggler {
|
||||
visibility: collapse !important;
|
||||
}
|
||||
|
||||
|
||||
|
@ -5136,18 +5136,12 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
||||
onBeforeFullScreenToggle : function TSTBrowser_onBeforeFullScreenToggle(aEnterFS)
|
||||
{
|
||||
if (this.position != 'top') {
|
||||
// entering to the DOM-fullscreen (ex. YouTube Player)
|
||||
if (this.document.mozFullScreen) {
|
||||
this.setTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED, true);
|
||||
}
|
||||
else {
|
||||
if (this.document.documentElement.getAttribute(this.kDOM_FULLSCREEN_ACTIVATED) != 'true') {
|
||||
if (aEnterFS)
|
||||
this.autoHide.startForFullScreen();
|
||||
else
|
||||
this.autoHide.endForFullScreen();
|
||||
}
|
||||
this.removeTabbrowserAttribute(this.kDOM_FULLSCREEN_ACTIVATED);
|
||||
// ignore entering to the DOM-fullscreen (ex. YouTube Player)
|
||||
if (!this.document.mozFullScreen) {
|
||||
if (aEnterFS)
|
||||
this.autoHide.startForFullScreen();
|
||||
else
|
||||
this.autoHide.endForFullScreen();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -82,7 +82,6 @@ var TreeStyleTabConstants = Object.freeze({
|
||||
kFAVICONIZED : 'treestyletab-faviconized',
|
||||
kBG_NOTIFY_PHASE : 'treestyletab-notifybgtab-phase',
|
||||
kIGNORE_POPUP_STATE : 'treestyletab-ignore-state',
|
||||
kDOM_FULLSCREEN_ACTIVATED : 'treestyletab-dom-fullscreen-activated',
|
||||
|
||||
kTAB_INVERTED : 'treestyletab-tab-inverted',
|
||||
kTAB_CONTENTS_INVERTED : 'treestyletab-tab-contents-inverted',
|
||||
|
Loading…
x
Reference in New Issue
Block a user