don't show content area screen if it is not required

This commit is contained in:
SHIMODA Hiroshi 2011-12-05 17:10:16 +09:00
parent 56df54a0c3
commit af9bc6257b

View File

@ -633,7 +633,8 @@ AutoHideBrowser.prototype = {
this.expanded &&
this.contentAreaScreenEnabled &&
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 style = this.screen.style;
@ -653,6 +654,11 @@ AutoHideBrowser.prototype = {
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 */
{