Open as orphan by default

This commit is contained in:
YUKI Hiroshi 2016-01-20 11:38:01 +09:00
parent 475798dcb6
commit 9ef9f0ec62

View File

@ -1341,6 +1341,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if (!aFromChrome && !this.checkToOpenChildTab(aTab)) if (!aFromChrome && !this.checkToOpenChildTab(aTab))
this.handleNewTabFromCurrent(aTab); this.handleNewTabFromCurrent(aTab);
else
this.readyToOpenOrphanTabNow(aTab);
}, },
onBeforeOpenNewTabByThirdParty : function TSTWindow_onBeforeOpenNewTabByThirdParty(aOwner) onBeforeOpenNewTabByThirdParty : function TSTWindow_onBeforeOpenNewTabByThirdParty(aOwner)
@ -1350,6 +1352,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if (!this.checkToOpenChildTab(aOwner)) if (!this.checkToOpenChildTab(aOwner))
this.handleNewTabFromCurrent(aOwner); this.handleNewTabFromCurrent(aOwner);
else
this.readyToOpenOrphanTabNow(aOwner);
}, },
onBeforeBrowserAccessOpenURI : function TSTWindow_onBeforeBrowserAccessOpenURI(aOpener, aWhere, aContext) onBeforeBrowserAccessOpenURI : function TSTWindow_onBeforeBrowserAccessOpenURI(aOpener, aWhere, aContext)
@ -1383,6 +1387,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if ((hasOwnerTab || internalOpen) && if ((hasOwnerTab || internalOpen) &&
aWhere == Ci.nsIBrowserDOMWindow.OPEN_NEWTAB) aWhere == Ci.nsIBrowserDOMWindow.OPEN_NEWTAB)
this.handleNewTabFromCurrent(opener); this.handleNewTabFromCurrent(opener);
else
this.readyToOpenOrphanTabNow(opener);
}, },
onBeforeViewMedia : function TSTWindow_onBeforeViewMedia(aEvent, aOwner) onBeforeViewMedia : function TSTWindow_onBeforeViewMedia(aEvent, aOwner)
@ -1394,6 +1400,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if (where.indexOf('tab') == 0) if (where.indexOf('tab') == 0)
this.handleNewTabFromCurrent(aOwner); this.handleNewTabFromCurrent(aOwner);
else
this.readyToOpenOrphanTabNow(aOwner);
}, },
onBeforeBrowserSearch : function TSTWindow_onBeforeBrowserSearch(aTerm, aForceNewTab) onBeforeBrowserSearch : function TSTWindow_onBeforeBrowserSearch(aTerm, aForceNewTab)
@ -1404,6 +1412,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if ((arguments.length == 1 || aForceNewTab) && if ((arguments.length == 1 || aForceNewTab) &&
this.shouldOpenSearchResultAsChild(aTerm)) this.shouldOpenSearchResultAsChild(aTerm))
this.handleNewTabFromCurrent(); this.handleNewTabFromCurrent();
else
this.readyToOpenOrphanTabNow();
}, },
/* Tree Style Tabの初期化が行われる前に復元されたセッションについてツリー構造を復元 */ /* Tree Style Tabの初期化が行われる前に復元されたセッションについてツリー構造を復元 */