Open new tabs from histories as orphan tabs

This commit is contained in:
Piro / YUKI Hiroshi 2016-01-28 21:41:09 +09:00
parent feaaade6e5
commit 94e1b0d89d

View File

@ -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));
};