Piro / YUKI Hiroshi
eda95c427a
Collect strongly related codes
2013-05-06 01:33:53 +09:00
Piro / YUKI Hiroshi
1746dbbff6
Split a large method onTabClose() to small methods
2013-05-06 01:22:57 +09:00
Piro / YUKI Hiroshi
f999733b75
Add compatibility note for deprecated feature on Firefox 20
2013-03-06 23:44:24 +09:00
Piro / YUKI Hiroshi
adbebdef7e
Reduce use of arguments.callee because it doesn't work on the strict mode
2013-03-02 21:29:41 +09:00
Piro / YUKI Hiroshi
b21590525d
Don't insert needless margins between collapsed tabs. ( #466 )
...
Negative margins for collapsed tabs were unexpectedly inverted for tabs which have its "cannot be collapsed" parent tab. However, such tabs still can be collapsed if its root parent tab can be collapse its sub tree.
2013-02-27 04:38:20 +09:00
Piro / YUKI Hiroshi
72d38659d8
TreeStyleTabBase should not inherit "prefs"
2013-01-06 11:47:50 +09:00
Piro / YUKI Hiroshi
75fdc626b5
Remove codes for Firefox 9 and older versions
2013-01-04 15:17:22 +09:00
saneyuki_s
665cb5668f
Move TreeStyleTabBase.evalInSandbox() to TreeStyleTabUtils.
2013-01-04 12:39:58 +09:00
saneyuki_s
a7fc238e4e
Move string bundles to TreeStyleTabUtils.
2013-01-03 11:08:25 +09:00
YUKI Hiroshi
f97f25c9e6
Fallback to another method to find tabs by coordinates correctly
2012-12-04 12:32:40 +09:00
Piro / YUKI Hiroshi
8e37edc535
find tab from screen coordinates more quickly
2012-12-04 01:16:20 +09:00
YUKI Hiroshi
1d2566765d
Define minimum width/height of the tab bar and restore it on the startup (so, if you accidentaly get too narrow tab bar, it will be fixed in the next startup: workaround for #380 )
2012-12-03 21:41:12 +09:00
YUKI Hiroshi
fa893b9801
Change the algorythm to find tab from coordinate based on _animateTabMove
2012-11-30 00:58:47 +09:00
Piro / YUKI Hiroshi
5f59ddb19d
Unify extensions.treestyletab.animation.enabled to browser.tabs.animate
2012-11-28 03:34:57 +09:00
Piro / YUKI Hiroshi
a1001d510f
Fix typo
2012-11-19 23:27:43 +09:00
YUKI Hiroshi
04eff24408
Don't listen "mouseleave" event (because it increases CPU usage even if we ended to listen the event by removeEventListener)
2012-11-19 16:20:10 +09:00
YUKI Hiroshi
f2fb69e663
Hide tab bar for only one tab window correctly ( fix #406 )
2012-11-15 16:03:24 +09:00
YUKI Hiroshi
c326bdda44
Don't update indent of tabs for collapsed tab bar ( fix #404 )
2012-11-14 13:14:15 +09:00
Piro / YUKI Hiroshi
450fa34790
Simplify codes to load modules lazily
2012-11-11 22:48:42 +09:00
Piro / YUKI Hiroshi
3577111d0b
Don't hide closeboxes of other tabs when toolbars are shown/hidden (Update floating tab bar before calling of adjustTabstrip(), because floating tab bar is unexpectedly resized to smallest size on the time)
2012-11-08 20:07:03 +09:00
Piro / YUKI Hiroshi
af4fb9e426
Update reference for getTreePref
2012-10-31 23:03:50 +09:00
Piro / YUKI Hiroshi
66e2e268f5
.utils => .base
2012-10-30 03:11:39 +09:00
YUKI Hiroshi
c0e9280444
Shorten "TSTUtils" to "utils" (because they are already in the context)
2012-10-24 01:43:56 +09:00
saneyuki_s
3e658380c9
Move some pref methods from TSTBase to TSTUtils.
2012-10-19 23:20:08 +09:00
Piro / YUKI Hiroshi
9182259ab5
Update credit
2012-10-14 03:31:06 +09:00
Piro / YUKI Hiroshi
d66b7083d2
Add line breaks for dynamic patches
2012-10-13 02:24:02 +09:00
YUKI Hiroshi
83626af553
Reduce use of <![CDATA[ ... ]]>
2012-10-12 16:46:37 +09:00
Piro / YUKI Hiroshi
bf068dfdab
Fix broken tree which can appear after a tab is duplicated as a child of the original tab
2012-09-23 17:59:19 +09:00
Piro / YUKI Hiroshi
7ffe6709d2
Add failsafe for unexpectedly stored tab attribute "tabbrowser-id"
2012-09-23 17:19:09 +09:00
Piro / YUKI Hiroshi
6f157657bc
Fix syntax error
2012-09-23 16:13:35 +09:00
Piro / YUKI Hiroshi
e5d4e509e3
Fix syntax error
2012-09-23 16:13:01 +09:00
Piro / YUKI Hiroshi
3b692b4de4
Reduce usecases of evaluateXPath()
2012-09-23 16:11:03 +09:00
Piro / YUKI Hiroshi
a6792a2b4b
Reduce usecases of evaluateXPath()
2012-09-23 15:43:49 +09:00
saneyuki_s
3941b88b1f
Remove TreeStyleTabUtils.ObserverService.
2012-09-18 00:31:48 +09:00
Piro / YUKI Hiroshi
d7121d9042
Simplify codes dynamically inserted by eval()
2012-09-15 12:09:15 +09:00
Piro / YUKI Hiroshi
1aa4f0e97a
Rename preferences for vertical tab bar with the suffix ".vertical"
2012-08-31 03:48:00 +09:00
Infocatcher
9fc8f4a882
Add separate indent preferences for horizontal tabs
...
Note: I think, we should cache "this.isVertical"... Only TST itself can change tab bar position, so this looks simple to implement.
2012-08-30 21:51:21 +04:00
Piro / YUKI Hiroshi
c0ab92a24a
Partially support live preview of tab dragging, introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=783282 (Not supported yet: dragging on a tab to attach)
2012-08-30 05:28:03 +09:00
Infocatcher
54b62268a9
Add handling of *.default preferences for tab bar size
2012-08-28 17:16:16 +04:00
Infocatcher
f6a534e4c5
Convert from Shift-JIS to UTF-8
2012-08-28 16:38:39 +04:00
Piro / YUKI Hiroshi
31a743ef25
Don't register the event handler twice
2012-08-25 00:22:29 +09:00
YUKI Hiroshi
d8c1a702f7
Don't update indent of tabs if the mouse pointer is still on the tab
2012-08-24 21:30:24 +09:00
YUKI Hiroshi
2639d2050a
Update indent of tabs when a tab is moved to another group or the tab group is switched
2012-08-24 20:52:26 +09:00
YUKI Hiroshi
b6b766e9e9
Update indent size automatically when "too deeply nested" tabs are collapsed/expanded. This behavior can be disabled by the secret preference "extensions.treestyletab.indent.autoShrink.onlyForVisible".
2012-08-24 20:51:37 +09:00
SHIMODA Hiroshi
e5ffbf3bea
Collapse a tree correctly even if a grandchild is focused ( #330 , regression)
2012-08-08 21:25:22 +09:00
Piro / SHIMODA Hiroshi
ceb4e7da77
Don't stop delayed smooth scroll by itself
2012-08-06 04:28:04 +09:00
Piro / SHIMODA Hiroshi
d2a6034f8a
"Fast restore" didn't work if TST is initialized after blank tabs are opened for restoring tabs
2012-08-05 22:38:06 +09:00
Piro / SHIMODA Hiroshi
b33d012b44
Fix broken tree after session restoration
2012-08-05 07:08:04 +09:00
Piro / SHIMODA Hiroshi
d05be51412
Delete unused reference
2012-08-05 06:11:23 +09:00
Piro / SHIMODA Hiroshi
b82b985e19
Don't use xpath-less getTabById until the TreeStyleTabBrowser object is initialized
2012-08-05 06:03:34 +09:00
Piro / SHIMODA Hiroshi
26d060919e
Fix missing "this" problem
2012-08-05 05:58:35 +09:00
Piro / SHIMODA Hiroshi
3657a95c2e
Fix conflict with Informational Tab
2012-08-05 05:49:17 +09:00
Piro / SHIMODA Hiroshi
d100d26da3
Suppress infinity loop from cyclic reference of tabs #309
2012-08-05 05:31:38 +09:00
Piro / SHIMODA Hiroshi
7063c166d1
Suppress errors from operations for already closed windows or tabs
2012-08-05 02:53:57 +09:00
Piro / SHIMODA Hiroshi
42d84c9633
Expand collapsed children of newly pinned tab automatically (children are unexpectedly vanished when a parent tab with collapsed children is pinned)
2012-08-03 03:29:23 +09:00
Piro / SHIMODA Hiroshi
21beb2e35b
Fix mispositioned pinned tabs on the startup
2012-08-03 03:26:23 +09:00
SHIMODA Hiroshi
41a42fc106
Don't forget collapsed state of trees while toolbar customizing
2012-07-29 00:13:56 +09:00
Piro / SHIMODA Hiroshi
8e28fb2444
The preference "extensions.treestyletab.autoExpand.intelligently" should work correctly (regression) #303
2012-05-30 21:43:36 +09:00
Piro / SHIMODA Hiroshi
5550e49ecb
Layout pinned tabs correctly even if the tab bar is narrower than the size of a pinned tab ( #269 )
2012-05-02 03:38:39 +09:00
Piro / SHIMODA Hiroshi
5e5db54748
Disable the "tabs on top" menu item correctly on Firefox 12 and later
2012-04-28 05:31:12 +09:00
SHIMODA Hiroshi
c35e56f87b
Enlarge max width of the status panel (update for changes introduced on https://bugzilla.mozilla.org/show_bug.cgi?id=632634 )
2012-04-17 15:05:10 +09:00
SHIMODA Hiroshi
7c6b3475ba
Store the original state of the "Tabs on Top" for user's expectation correctly
2012-04-09 20:18:52 +09:00
SHIMODA Hiroshi
b1b029686d
Don't reset "Tabs on Top" state on the startup (It was wrongly enabled on every startup)
2012-04-09 17:59:06 +09:00
Piro / SHIMODA Hiroshi
9b819f7e28
Simplify updateTabbarState()
2012-02-29 00:40:31 +09:00
Piro / SHIMODA Hiroshi
8d07bf0452
Prevent to collapse tabs if they shouldn't be collapsed
2012-02-29 00:36:50 +09:00
SHIMODA Hiroshi
018cee82b7
Expand all tree internally, after the status is changed from "cannot collapse" to "can collapse"
2012-02-28 21:51:19 +09:00
SHIMODA Hiroshi
29d033d476
Expand collapsed tree when they become to "cannot be collapsed"
2012-02-28 21:42:37 +09:00
SHIMODA Hiroshi
74be5512ac
Clear "twisty-hover" state correctly even if the pointer goes away from the tab bar
2012-02-28 12:56:28 +09:00
SHIMODA Hiroshi
4fd96587f5
Merge branch 'master' of github.com:piroor/treestyletab
2012-02-10 15:32:02 +09:00
Piro / SHIMODA Hiroshi
bae7c30238
even if "auto collapse/expand of focused tree" is disabled, long time pressing of Ctrl key should expand the tree.
2012-02-10 03:59:13 +09:00
Piro / SHIMODA Hiroshi
b42df2780f
User preference of "When a tab gets focus, expand its tree and collapse others automatically" was wrongly ignored if focusMode = 0 ( https://github.com/piroor/treestyletab/issues/232 )
2012-02-10 02:59:50 +09:00
Piro / SHIMODA Hiroshi
db70b7f469
for horizontal tab bar, failed to reset z index
2012-02-09 02:52:10 +09:00
SHIMODA Hiroshi
f0333d5a32
hide temporary states if Tab Mix Plus or Informational Tab are available
2012-02-07 11:46:14 +09:00
Piro / SHIMODA Hiroshi
89cecd0fe2
fix missing "this"
2012-02-07 02:15:15 +09:00
Piro / SHIMODA Hiroshi
c844906cb1
handle errors in deferred tasks
2012-02-07 02:13:46 +09:00
Piro / SHIMODA Hiroshi
d6f0e5e6b3
on Nightly 13.0a1, drag and drop of the last tree from another window broke tab animations (tab animations shouldn't be processed while the window is destroying)
2012-02-05 08:24:26 +09:00
Piro / SHIMODA Hiroshi
16f6cd7dd9
optimize: reduce use of Iterator
2012-02-05 06:31:03 +09:00
Piro / SHIMODA Hiroshi
f9daab2ae0
with Tab Mix Plus, appearance of tabs is broken on the startup
2012-02-05 04:15:21 +09:00
Piro / SHIMODA Hiroshi
59444c68a6
use Iterator instead of forEach (for performance optimization)
2012-02-05 03:15:38 +09:00
Piro / SHIMODA Hiroshi
35d1bfce99
don't touch vertical containers
2012-02-05 01:02:02 +09:00
Piro / SHIMODA Hiroshi
6ab0543a32
support tab contents modified by Tab Mix Plus
2012-02-04 20:28:30 +09:00
Piro / SHIMODA Hiroshi
f744f51802
* remove custom drop marker in tabs
...
* initTabContents always update the order of tab contents
2012-02-04 02:33:49 +09:00
Piro / SHIMODA Hiroshi
5ef4c9f795
don't reset position of thumbnail container inserted by informational tab
2012-02-03 05:59:32 +09:00
Piro / SHIMODA Hiroshi
6c43a67836
don't apply custom binding to tabs anymore
2012-02-03 05:27:57 +09:00
Piro / SHIMODA Hiroshi
bf9f48dfdb
In some cases, "Tabs on Top" was wrongly enabled when a popup window is opened.
2012-01-31 03:38:41 +09:00
Piro / SHIMODA Hiroshi
80679b2893
failed to update the size of the floating tab bar in some cases (ex. Firebug's panel)
2012-01-31 03:15:00 +09:00
Piro / SHIMODA Hiroshi
ed46793caa
When new tab is opened in the background, it should be notified by an animation effect.
2012-01-29 19:54:02 +09:00
Piro / SHIMODA Hiroshi
10f25fe0ef
when a tree is expanded, the parent tab could be scrolled out unexpectedly.
2012-01-29 06:43:43 +09:00
Piro / SHIMODA Hiroshi
7511b03b8e
failed to scroll to the expanded tree when a collapsed tree was selected
2012-01-29 06:22:04 +09:00
Piro / SHIMODA Hiroshi
95b6e0a5b9
update comment
2012-01-28 04:49:12 +09:00
Piro / SHIMODA Hiroshi
ddf539ae5f
add comment
2012-01-28 04:48:21 +09:00
Piro / SHIMODA Hiroshi
43b22f1e22
When the system is too slow on TabOpen event (by Informational Tab or some addons), the tab bar failed to be scrolled to the newly opened tab.
2012-01-28 04:33:02 +09:00
Piro / SHIMODA Hiroshi
f077af1317
ignore events after destruction
2012-01-24 04:07:56 +09:00
SHIMODA Hiroshi
ca830a8f53
revert changes on 4636f201bc
(in the horizontal tab bar, tabs should be stacked always)
2012-01-18 11:58:12 +09:00
Piro / SHIMODA Hiroshi
c604a72eec
Firefox can remove "overflow" property wrongly, by horizontal overflow/underflow on a vertical tab bar.
2012-01-15 03:42:51 +09:00
Piro / SHIMODA Hiroshi
17c7280d05
switch the role of the counter in tabs for vertical and horizontal tab bar
2012-01-14 01:45:51 +09:00
Piro / SHIMODA Hiroshi
4d816760b5
reduce obsolete version-specific logic and comments
2012-01-14 01:30:06 +09:00
Piro / SHIMODA Hiroshi
9fc01781a1
remove module for optimization
2012-01-14 01:20:43 +09:00
SHIMODA Hiroshi
bcb8615f47
drop Firefox 3.6 support
2012-01-13 17:38:12 +09:00
SHIMODA Hiroshi
4636f201bc
in the horizontal tab bar, tabs should be stacked always
2012-01-13 17:12:25 +09:00
SHIMODA Hiroshi
07b0e15aaa
suppress unexpected jumping of the tab bar more intelligently
2012-01-13 12:28:13 +09:00
SHIMODA Hiroshi
585ab07c48
suppress unexpected jumping on the tab bar after new child tabs are opened
2012-01-13 12:16:35 +09:00
SHIMODA Hiroshi
d45ec4a947
when the browser is too slow, manual scrollings on the tab bar can be canceled by smooth scroll animations of TST
2012-01-06 19:38:38 +09:00
Piro / SHIMODA Hiroshi
d512dbbfa4
failed to create tree for the tab initially selected in a background group ( some tabs restored in background group cannot be found by getTabById() )
2012-01-04 00:13:35 +09:00
Piro / SHIMODA Hiroshi
08aa9a3459
failed to restore closed tree
2012-01-03 22:03:51 +09:00
Piro / SHIMODA Hiroshi
afca500dbe
With Tab Mix Plus, failed to restore secondary or later pinned tabs if there is no normal tab
2012-01-03 05:50:38 +09:00
Piro / SHIMODA Hiroshi
6c2eacc16a
tree of tabs cannot be restored (regression)
2012-01-02 19:52:51 +09:00
Piro / SHIMODA Hiroshi
e8f092b7b1
By ctrl-shift-` and ctrl-shift-~ tab groups (Panorama) were broken unexpectedly.
2012-01-02 05:18:14 +09:00
SHIMODA Hiroshi
60af382b89
manually expanded tree should not collapsed automatically (like Windows Explorer)
2011-12-27 13:21:23 +09:00
SHIMODA Hiroshi
d0664b4552
"fast restore" didn't work for secondary (and later) window
2011-12-19 19:20:14 +09:00
SHIMODA Hiroshi
6a9f32235c
we should not expand tab bar automatically if the pointer is over the twisty
2011-12-19 16:49:23 +09:00
SHIMODA Hiroshi
b5f3f4abd3
don't shrink sensitive area if there is no closebox near the pointer
2011-12-19 16:37:48 +09:00
Piro / SHIMODA Hiroshi
058d27612b
event listener for initialization was not unregistered
2011-12-17 00:50:30 +09:00
SHIMODA Hiroshi
668a4f667e
we should save data to TMP's session manager always
2011-12-15 14:28:40 +09:00
SHIMODA Hiroshi
7832e7a2e6
fast restore should work with TMP if TMP session managemnt is disabled
2011-12-15 14:12:41 +09:00
Piro / SHIMODA Hiroshi
5f771740db
don't do fast restore if TMP's session management is activated
2011-12-14 23:51:56 +09:00
SHIMODA Hiroshi
35e8280451
tree structure of hidden tabs in background groups should not be restored on the startup.
2011-12-14 18:05:32 +09:00
SHIMODA Hiroshi
4b36391e66
failed to save tab id (regression)
2011-12-14 13:41:26 +09:00
SHIMODA Hiroshi
fdf03c5f35
* fast restore can be disabled
...
* no need to observe sessionstore topics
2011-12-14 13:30:29 +09:00
Piro / SHIMODA Hiroshi
a3af97ef98
rearrange methods
2011-12-13 23:21:31 +09:00
Piro / SHIMODA Hiroshi
f6fddbdadc
output stack trace
2011-12-13 23:00:44 +09:00
Piro / SHIMODA Hiroshi
594abe6e54
simplify
2011-12-13 22:59:45 +09:00
SHIMODA Hiroshi
cf4b3bd1f1
don't restore already restored tabs
2011-12-13 20:41:42 +09:00
SHIMODA Hiroshi
476ffb70d5
refactoring
2011-12-13 20:18:32 +09:00
SHIMODA Hiroshi
e3b7f7adf4
relation of the selected tab was unexpectedly lost
2011-12-13 18:03:16 +09:00
SHIMODA Hiroshi
e21c0f4d01
if we can restore tree more quickly, do it
2011-12-13 16:32:42 +09:00
SHIMODA Hiroshi
4c51a856b1
better handling of duplicated tabs
2011-12-13 16:10:49 +09:00
Piro / SHIMODA Hiroshi
8d981a7d13
always restore all tree
2011-12-13 03:54:43 +09:00
SHIMODA Hiroshi
b8fd343863
unity fastRestoreTreeStructure to onWindowStateRestored
2011-12-12 18:39:46 +09:00
SHIMODA Hiroshi
1bc3146759
activate "fast restore" for any window restoration (ex. Private Browsing, Session Manager, etc.)
2011-12-12 16:44:10 +09:00
SHIMODA Hiroshi
fa4d4e1648
now we can apply "fast restore" for tabs in background groups
2011-12-12 15:04:29 +09:00
SHIMODA Hiroshi
726a4ae03f
tabs were unexpectedly rearranged after you exited from Panorama.
2011-12-12 14:48:51 +09:00
SHIMODA Hiroshi
5d9c5f3a74
don't collapse a existing tree automatically if it is in a background group
2011-12-12 11:51:48 +09:00
SHIMODA Hiroshi
7b41779a0b
failed to restore subtree-collapsed state for restored tabs (by undo close tab command)
2011-12-09 11:12:27 +09:00
SHIMODA Hiroshi
491ec519a7
rename methods for handling events
2011-12-09 11:11:53 +09:00
Piro / SHIMODA Hiroshi
90e4852836
confirmation message should be shown immediately, and it should not be closed by page loadings
2011-12-09 02:58:36 +09:00
Piro / SHIMODA Hiroshi
7d891dd32c
"undo closed set" feature didn't work (part 2)
2011-12-09 01:40:43 +09:00
Piro / SHIMODA Hiroshi
7035a53d4f
"undo closed set" feature didn't work
2011-12-09 01:39:55 +09:00
Piro / SHIMODA Hiroshi
2d54b402c0
call updateInsertionPositionInfo only for "fast restor"ed tabs
2011-12-08 05:17:06 +09:00
Piro / SHIMODA Hiroshi
5193c60a3b
"fast restore" should restore collapsed/expand state based on user pref
2011-12-08 05:12:33 +09:00
Piro / SHIMODA Hiroshi
acefddccb7
set position of child tabs
2011-12-08 04:43:51 +09:00
Piro / SHIMODA Hiroshi
7d3f967b1a
add codes for failsafe
2011-12-08 04:40:26 +09:00
Piro / SHIMODA Hiroshi
87c0b4ad27
"fast restore" didn't work as I expected for tabs without children.
2011-12-08 01:40:33 +09:00
Piro / SHIMODA Hiroshi
46326d4997
fix typo
2011-12-07 21:33:57 +09:00
SHIMODA Hiroshi
828e6e48f9
simplify implementation of "fast restore"
2011-12-07 15:14:02 +09:00
SHIMODA Hiroshi
9b5c3c594d
tree structure was not restored correctly
2011-12-07 12:06:05 +09:00
SHIMODA Hiroshi
ff5a299316
part => detach
2011-12-07 10:20:14 +09:00
SHIMODA Hiroshi
ca0b1fe073
partTab() => detachTab() (API is renamed)
2011-12-07 10:18:05 +09:00
SHIMODA Hiroshi
87352e22e6
add a comment about restoreTreeStructure() on Firefox 3.6
2011-12-06 18:06:59 +09:00
SHIMODA Hiroshi
db286777de
tree structure should be restored even if there are any extra tab
2011-12-05 20:19:32 +09:00