Commit Graph

603 Commits

Author SHA1 Message Date
YUKI Hiroshi
d1977a1695 Merge branch 'master' of github.com:piroor/treestyletab 2012-09-03 10:25:29 +09:00
YUKI Hiroshi
5825e5e9cc Replace "new Date.getTime()" with "Date.now()" 2012-09-03 10:25:08 +09:00
Infocatcher
790d3dfee0 Ignore wrong URIs in securityCheck()
Example: view-source:chrome://browser/content/tabbrowser.xml
2012-09-01 17:16:19 +04:00
Infocatcher
bc6912fe03 Inherit built-in dragDropSecurityCheck() behavior
See chrome://global/content/nsDragAndDrop.js
2012-09-01 17:01:38 +04: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
Infocatcher
5f29a2dc5f Add separate indent preferences for horizontal tabs
Note: original code doesn't handle "extensions.treestyletab.indent.min" change.
2012-08-30 21:46:50 +04:00
Piro / YUKI Hiroshi
baaede95a8 Fix wrong live preview of moving tabs after auto-expansion while dragging 2012-08-30 09:43:23 +09:00
Piro / YUKI Hiroshi
6393abb4c9 Show the dragged tab transparently if the tab is going to be dropped onto another tab 2012-08-30 06:25:59 +09:00
Piro / YUKI Hiroshi
11f725eb0b Handle automatically expanded trees correctly 2012-08-30 06:10:47 +09:00
Piro / YUKI Hiroshi
714d4a3771 Automatic expansion of collapsed trees while dragging works correctly 2012-08-30 06:04:01 +09:00
Piro / YUKI Hiroshi
4a8dd74cfb Don't set drop position marker for the dragged tab itself 2012-08-30 06:02:37 +09:00
Piro / YUKI Hiroshi
267ab40a9b Clear dragging status correctly for cross-window tab drag and drop 2012-08-30 05:48:28 +09:00
Piro / YUKI Hiroshi
929dbce943 Support live preview of tab dragging, for dragging on a tab to attach 2012-08-30 05:41:25 +09: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
13eee1e594 Skip missing nsIDragSession.sourceDocument
See https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIDragSession#Attributes
2012-08-29 18:29:04 +04:00
Infocatcher
5e39c1b25b Use checkLoadURIStrWithPrincipal() instead of checkLoadURIStr()
Because checkLoadURIStr() are missing in Nightly
2012-08-29 14:23:05 +04:00
YUKI "Piro" Hiroshi
5a08ebf666 Merge pull request #345 from Infocatcher/patch-8
Optimize setAttribute/removeAttribute usage during DragOver (v.2)
2012-08-29 02:58:04 -07:00
Infocatcher
1c4409d85c Fix missing aEvent in securityCheck() 2012-08-29 13:16:42 +04:00
Infocatcher
ddeddd38ee Reset tab bar height only using left double click 2012-08-28 17:21:46 +04:00
Infocatcher
54b62268a9 Add handling of *.default preferences for tab bar size 2012-08-28 17:16:16 +04:00
Infocatcher
03f41d9db4 Optimize setAttribute/removeAttribute usage during DragOver (v.2)
Should fix #331
2012-08-28 17:11:06 +04:00
Infocatcher
76defb974a Convert from Shift-JIS to UTF-8 2012-08-28 16:53:25 +04:00
Infocatcher
bc6015919a Convert from Shift-JIS to UTF-8 2012-08-28 16:52:13 +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
saneyuki_s
54a5d46758 Use Service.jsm in modules/ (exclude modules/lib/). 2012-08-13 14:58:40 +09:00
Piro / SHIMODA Hiroshi
ee82f580e2 Don't stop animation effects for newly opened tabs accidentally. (#332) 2012-08-10 03:49:07 +09:00
Piro / SHIMODA Hiroshi
df23d21ce0 Output warning for recursive or broken tree from getDescendantTabs() 2012-08-09 05:02:24 +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
YUKI "Piro" Hiroshi
8184411e0e Fix "tabs don't appear" problem. (Animation effects were unexpectedly stopped by some errors.) 2012-08-08 15:35:59 +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
be216aec1f Update library 2012-08-06 04:27:15 +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
cf64de0000 Return first, last and other tabs without specifying child element 2012-08-05 07:06:32 +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
7016e1eca1 Automatically fix broken reference for already closed tabs by getParentTab() 2012-08-05 05:04:26 +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
ce6b3b95db Tree can be broken when the last child tab is moved to the upper level by drag and drop #297 2012-08-04 02:35:44 +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
Piro / SHIMODA Hiroshi
4e9e6100f2 Move the dragged pinned tab to the dropped position correctly when the drop target is also pinned. 2012-08-03 02:41:47 +09:00
SHIMODA Hiroshi
8b5a200583 Update tab bar appearance correctly when contents of the browser bottom box is shown or hidden #312 2012-07-29 14:47:11 +09:00
SHIMODA Hiroshi
3fe6641839 Open new tabs at the dropped position for drag and drop of bookmark folders #316 2012-07-29 11:11:41 +09:00
SHIMODA Hiroshi
b64dbbda9f Open bookmark group as a tree if a bookmark folder is dropped to the tab bar (but not moved to the dropped position yet) #316 2012-07-29 04:08:57 +09:00
SHIMODA Hiroshi
4b34d12c74 Add codes to retrieve URLs from dropped bookmark folder on Firefox 13 and later (related to #316 ) 2012-07-29 02:32:57 +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
SHIMODA Hiroshi
247ec2a3b7 Fix NS_ERROR_XPC_BAD_OP_ON_WN_PROTO error while auto-shrink is enabled ( #241 ) 2012-05-02 19:29:29 +09:00
Piro / SHIMODA Hiroshi
3b9c542e5a Open new tabs from GM_openInTab() with Scriptish 0.1.7 (https://addons.mozilla.org/firefox/addon/scriptish/) #276 2012-05-02 04:56:45 +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
5bec33ba6f Move the dragged tab to the correct position even if the drop target tab has no child. 2012-05-02 03:27:30 +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
3792c8a239 Don't show full tooltip if TST's tooltip is disabled by user preference (#268) 2012-04-09 21:28:48 +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
528545ff25 Don't override the result of middle-click on the new tab button, by the result for the new tab command fired by the click event itself. (Specified behavior for middle-click on the new tab button was unexpectedly ignored. #247) 2012-02-29 02:28:05 +09:00
Piro / SHIMODA Hiroshi
c3d5c3f296 Move tab to the upper level if it is dropped on the bottom area of its parent tab (fix for #249) 2012-02-29 01:50:24 +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
aea0595898 Support border-radius and other CSS3 properties (without -moz-prefix) 2012-02-28 15:11:24 +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
Piro / SHIMODA Hiroshi
94ec1878f5 pref version 1 should be handled 2012-02-11 03:09:24 +09:00
Piro / SHIMODA Hiroshi
8b7a7f22c4 pref migration on the initial startup didn't work 2012-02-11 02:20:24 +09:00
SHIMODA Hiroshi
4fd96587f5 Merge branch 'master' of github.com:piroor/treestyletab 2012-02-10 15:32:02 +09:00
Piro / SHIMODA Hiroshi
1471fbd8da a link dropped onto the last parent tab was wrongly opened as the first child tab even if it should be opened as the last child. 2012-02-10 04:47:59 +09:00
Piro / SHIMODA Hiroshi
9e8993cfdd pref migration should be done by globally at first. 2012-02-10 04:01:13 +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
Piro / SHIMODA Hiroshi
330fcd301a update library 2012-02-09 02:22:25 +09:00
SHIMODA Hiroshi
ff6bfb3473 Merge branch 'master' of github.com:piroor/treestyletab 2012-02-08 10:22:58 +09:00
Piro / SHIMODA Hiroshi
a00e0bcb0d update library 2012-02-08 03:23: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
5cbbd36fea dragging out of tree wrongly duplicated the dragged tree. now they should be duplicated if Ctrl or Command key is pressed. (but it doesn't work currently, because modifier keys are ignored on dragend event.) 2012-02-05 07:50: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
d02eb93c8a use Iterator instead of forEach (for performance optimization) 2012-02-05 04:03:28 +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
3aaf8bc8d7 fix drop marker in sidebar style 2012-02-04 04:36:26 +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
SHIMODA Hiroshi
968155edb7 the sensitive area was wrongly expanded to the width of the shown tab bar 2012-02-03 19:11:56 +09:00
SHIMODA Hiroshi
dd275b4e24 Merge branch 'master' of github.com:piroor/treestyletab 2012-02-03 12:22:04 +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