Open new tabs from histories as orphan tabs
This commit is contained in:
parent
feaaade6e5
commit
94e1b0d89d
@ -487,3 +487,13 @@ PlacesUIUtils.openURINodesInTabs = function(aNode, ...aArgs) {
|
||||
delete this.__treestyletab__folderName;
|
||||
}
|
||||
};
|
||||
|
||||
PlacesUIUtils.__treestyletab__openNodeWithEvent = PlacesUIUtils.openNodeWithEvent;
|
||||
PlacesUIUtils.openNodeWithEvent = function(aNode, aEvent, aView, ...aArgs) {
|
||||
var window = aView.ownerWindow;
|
||||
if (!window.gBrowser)
|
||||
window = PlacesUIUtils._getTopBrowserWin();
|
||||
if (window && window.gBrowser)
|
||||
window.gBrowser.treeStyleTab.readyToOpenOrphanTabNow();
|
||||
return PlacesUIUtils.__treestyletab__openNodeWithEvent.apply(this, [aNode, aEvent, aView].concat(aArgs));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user