From c3efa9bd13eaa5958c1a884150e0b156cf79a3c1 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Fri, 12 Feb 2016 19:27:51 +0900 Subject: [PATCH] Don't replace parent tab with group tab if it ls already replaced --- modules/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index a352645a..78ef9a49 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -5762,7 +5762,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { insertBefore = this.getNextSiblingTab(this.getRootTab(aTab)); } - if (aInfo.behavior == this.kCLOSE_PARENT_BEHAVIOR_REPLACE_WITH_GROUP_TAB) { + if (aInfo.behavior == this.kCLOSE_PARENT_BEHAVIOR_REPLACE_WITH_GROUP_TAB && + !this.isGroupTab(aTab)) { let uri = this.getGroupTabURI({ title: aTab.label, temporary: true