don't show content area screen if it is not required
This commit is contained in:
parent
56df54a0c3
commit
af9bc6257b
@ -633,7 +633,8 @@ AutoHideBrowser.prototype = {
|
|||||||
this.expanded &&
|
this.expanded &&
|
||||||
this.contentAreaScreenEnabled &&
|
this.contentAreaScreenEnabled &&
|
||||||
this.treeStyleTab.FocusManager.activeWindow &&
|
this.treeStyleTab.FocusManager.activeWindow &&
|
||||||
this.treeStyleTab.FocusManager.activeWindow.top == this.window
|
this.treeStyleTab.FocusManager.activeWindow.top == this.window &&
|
||||||
|
this.findPluginArea(this.browser.contentWindow)
|
||||||
) {
|
) {
|
||||||
let box = this.getContentsAreaBox();
|
let box = this.getContentsAreaBox();
|
||||||
let style = this.screen.style;
|
let style = this.screen.style;
|
||||||
@ -653,6 +654,11 @@ AutoHideBrowser.prototype = {
|
|||||||
this.screen.hidePopup();
|
this.screen.hidePopup();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
findPluginArea : function AHB_findPluginArea(aFrame)
|
||||||
|
{
|
||||||
|
return aFrame.document.querySelector('embed, object') ||
|
||||||
|
Array.some(aFrame.frames, arguments.callee);
|
||||||
|
},
|
||||||
|
|
||||||
show : function AHB_show(aReason) /* PUBLIC API */
|
show : function AHB_show(aReason) /* PUBLIC API */
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user