Fix click->open link handler for bug 1050447/Fx 34
This commit is contained in:
parent
b64986b292
commit
8fa1d76281
@ -207,10 +207,12 @@ var TreeStyleTabWindowHelper = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ('openLinkIn' in window) {
|
if ('openLinkIn' in window) {
|
||||||
|
// Bug 1050447 changed this line in Fx 34 to
|
||||||
|
// newTab = w.gBrowser.loadOneTab(
|
||||||
eval('window.openLinkIn = '+
|
eval('window.openLinkIn = '+
|
||||||
window.openLinkIn.toSource().replace(
|
window.openLinkIn.toSource().replace(
|
||||||
'browser.loadOneTab(',
|
/((b|newTab = w\.gB)rowser.loadOneTab\()/g,
|
||||||
'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $&'
|
'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $1'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user