updated for changes introduced by Bug 448546 - When middle-clicking back/forward/reload, the new tab should inherit history from the tab that opened it (using duplicateTab) ( https://bugzilla.mozilla.org/show_bug.cgi?id=448546 )
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7269 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
cb37b0b1d5
commit
b0aaaadff2
@ -1133,12 +1133,13 @@ catch(e) {
|
||||
window.gotoHistoryIndex
|
||||
window.BrowserForward
|
||||
window.BrowserBack
|
||||
window.BrowserReloadOrDuplicate
|
||||
]]>).forEach(function(aFunc) {
|
||||
let source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^\(?function (gotoHistoryIndex|BrowserForward|BrowserBack)/.test(source))
|
||||
return;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
/(openUILinkIn\()/g,
|
||||
/((?:openUILinkIn|duplicateTabIn)\()/g,
|
||||
<![CDATA[
|
||||
if (where == 'tab' || where == 'tabshifted')
|
||||
TreeStyleTabService.readyToOpenChildTab();
|
||||
|
Loading…
Reference in New Issue
Block a user