Fix click->open link handler for bug 1050447/Fx 34

This commit is contained in:
John Schoenick 2014-08-27 15:58:06 -07:00
parent b64986b292
commit 8fa1d76281

View File

@ -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.onBeforeOpenLinkWithParams(params); $1'
)
);
}