From 8db6b008aec9289d40e3b2cd2358882f33836efe Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 17 Apr 2014 20:01:35 +0900 Subject: [PATCH] Follow to changes introduced by the bug 971630 (fix #685) Changes introduced by this diff break TST. http://hg.mozilla.org/mozilla-central/diff/6aef8ef7d775/browser/base/content/tabbrowser.xml --- content/treestyletab/windowHelper.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 9c3596e1..686cbeec 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -512,6 +512,17 @@ var TreeStyleTabWindowHelper = { /\.left/g, '[treeStyleTab.startProp]' ).replace( /\.right/g, '[treeStyleTab.endProp]' + + // replace such codes: + // tab = {left: tab.left, right: tab.right}; + ).replace( + /left\s*:/g, 'start:' + ).replace( + /right\s*:/g, 'end:' + ).replace( + /((tab|selected)\s*=\s*\{\s*start:[^\}]+\})/g, + '$1; $2[treeStyleTab.startProp] = $2.start; $2[treeStyleTab.endProp] = $2.end;' + ).replace( '!selected ||', '$& treeStyleTab.scrollToNewTabMode == 1 && '