diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index ce60ca3e..9a841008 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -207,10 +207,12 @@ var TreeStyleTabWindowHelper = { } if ('openLinkIn' in window) { + // Bug 1050447 changed this line in Fx 34 to + // newTab = w.gBrowser.loadOneTab( eval('window.openLinkIn = '+ window.openLinkIn.toSource().replace( - 'browser.loadOneTab(', - 'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $&' + /((b|newTab = w\.gB)rowser.loadOneTab\()/g, + 'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab); $1' ) ); } diff --git a/modules/autoHide.js b/modules/autoHide.js index effbdec0..3889c1bc 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -712,12 +712,15 @@ AutoHideBrowser.prototype = { }, 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 ( this.expanded && this.contentAreaScreenEnabled && Services.focus.activeWindow && Services.focus.activeWindow.top == this.window && - this.findPluginArea(this.browser.contentWindow) + this.findPluginArea(this.browser.mCurrentBrowser.contentWindow) ) { let box = this.getContentsAreaBox(); let style = this.screen.style; diff --git a/modules/window.js b/modules/window.js index 49caee9f..f9a09136 100644 --- a/modules/window.js +++ b/modules/window.js @@ -1213,11 +1213,10 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { this.handleNewTabFromCurrent(aOwner); }, - onBeforeOpenLinkWithParams : function TSTWindow_onBeforeOpenLinkWithParams(aParams) + onBeforeOpenLinkWithTab : function TSTWindow_onBeforeOpenLinkWithParams(aTab) { - if (aParams.linkNode && - !this.checkToOpenChildTab(aParams.linkNode.ownerDocument.defaultView)) - this.handleNewTabFromCurrent(aParams.linkNode.ownerDocument.defaultView); + if (aTab && !this.checkToOpenChildTab(aTab)) + this.handleNewTabFromCurrent(aTab); }, onBeforeOpenNewTabByThirdParty : function TSTWindow_onBeforeOpenNewTabByThirdParty(aOwner)