Commit Graph

628 Commits

Author SHA1 Message Date
Piro / YUKI Hiroshi
cfc8da1577 Failed to collect root tabs (regression, fix #375) 2012-09-23 23:44:06 +09:00
saneyuki_s
f05c10f5ef Fix the order of parameters. 2012-09-23 21:04:20 +09:00
saneyuki_s
a18738be8f Remove TreeStyleTabUtils.PromptService. 2012-09-23 18:39:34 +09:00
saneyuki_s
4a023989b9 Remove TreeStyleTabUtils.WindowMediator. 2012-09-23 18:39:34 +09:00
saneyuki_s
7aa69f4882 Remove TreeStyleTabUtils.Comparator. 2012-09-23 18:39:34 +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
d2e9f51f8f Fix broken XPath expression 2012-09-23 16:08:08 +09:00
Piro / YUKI Hiroshi
62e9132d5e Reduce usecases of evaluateXPath() 2012-09-23 15:51:11 +09:00
Piro / YUKI Hiroshi
a6792a2b4b Reduce usecases of evaluateXPath() 2012-09-23 15:43:49 +09:00
Piro / YUKI Hiroshi
c9a3d28c72 Open duplicated tabs from back/forward buttons as children of the current tab 2012-09-23 14:57:29 +09:00
saneyuki_s
f2a50a4615 Remove TreeStyleTabUtils.XULAppInfo. 2012-09-18 02:15:08 +09:00
saneyuki_s
7db770368d Remove currently needless code. 2012-09-18 02:08:36 +09:00
saneyuki_s
ee71d841c4 Call Services.io directly in modules/tabbarDNDObserver.js. 2012-09-18 01:18:05 +09:00
saneyuki_s
2cff8ebc48 Remove TreeStyleTabUtils.IOService. 2012-09-18 01:18:05 +09:00
YUKI "Piro" Hiroshi
37a21325a9 Merge pull request #362 from saneyuki/obs
Remove TreeStyleTabUtils.ObserverService.
2012-09-17 09:02:56 -07:00
saneyuki_s
3941b88b1f Remove TreeStyleTabUtils.ObserverService. 2012-09-18 00:31:48 +09:00
saneyuki_s
6a5d12915e Use XPCOMUtils.defineLazyModuleGetter() to import |TreeStyleTabUtils| in modules/pseudoTreeBuilder.js. 2012-09-17 23:47:46 +09:00
saneyuki_s
a856ba112f Remove setting PseudoTreeBuilder.__proto__. Call TreeStyleTabUtils' methods directly. 2012-09-17 23:41:05 +09:00
Piro / YUKI Hiroshi
03723bd457 Fix typo (fix #359) 2012-09-15 21:53:22 +09:00
Piro / YUKI Hiroshi
18639ccbea Don't override BrowserReloadOrDuplicate, BrowserForward, BrowserBack, and gotoHistoryIndex anymore 2012-09-15 12:32:58 +09:00
Piro / YUKI Hiroshi
d7121d9042 Simplify codes dynamically inserted by eval() 2012-09-15 12:09:15 +09:00
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