[Pkg-mozext-commits] [tabmixplus] 03/147: Update compatibility with treeStyleTab - Open new next sibling tab correctly, even if there is no next sibling

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 81091f1bba5184c2c0232b2041e553c04c7292b4
Author: YUKI Piro Hiroshi <piro.outsider.reflex at gmail.com>
Date:   Mon Sep 12 16:50:08 2016 +0900

    Update compatibility with treeStyleTab - Open new next sibling tab correctly, even if there is no next sibling
    
    See also: https://github.com/piroor/treestyletab/issues/1184
    https://bitbucket.org/onemen/tabmixplus/pull-requests/4
---
 chrome/content/extensions/extensions.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/extensions/extensions.js b/chrome/content/extensions/extensions.js
index 19a688d..0dd4e8e 100644
--- a/chrome/content/extensions/extensions.js
+++ b/chrome/content/extensions/extensions.js
@@ -797,7 +797,10 @@ TMP_extensionsCompatibility.treeStyleTab = {
         return false;
       let nextTab = tst.getNextSiblingTab(baseTab);
       if (parentTab) {
-        return tst.readyToOpenChildTab(parentTab, false, nextTab);
+        return tst.readyToOpenChildTab(parentTab, false, {
+          insertBefore: nextTab,
+          insertAfter: baseTab
+        });
       } else if (nextTab) {
         ownerBrowser.treeStyleTab.readiedToAttachNewTab = true;
         ownerBrowser.treeStyleTab.parentTab = null;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list