Workaround for bug 1042680 issue #3 in e10s mode

This commit is contained in:
John Schoenick 2014-08-27 15:54:15 -07:00
parent 503803c076
commit b64986b292

View File

@ -712,12 +712,15 @@ AutoHideBrowser.prototype = {
}, },
showHideContentsAreaScreen : function AHB_showHideContentsAreaScreen() showHideContentsAreaScreen : function AHB_showHideContentsAreaScreen()
{ {
// this.browser.contentWindow doesn't currently work in e10s
// mode, use this.browser.mCurrentBrowser.contentWindow as a
// workaround until bug 1042680 is fixed
if ( if (
this.expanded && this.expanded &&
this.contentAreaScreenEnabled && this.contentAreaScreenEnabled &&
Services.focus.activeWindow && Services.focus.activeWindow &&
Services.focus.activeWindow.top == this.window && Services.focus.activeWindow.top == this.window &&
this.findPluginArea(this.browser.contentWindow) this.findPluginArea(this.browser.mCurrentBrowser.contentWindow)
) { ) {
let box = this.getContentsAreaBox(); let box = this.getContentsAreaBox();
let style = this.screen.style; let style = this.screen.style;