Commit Graph

746 Commits

Author SHA1 Message Date
saneyuki_s
9921ea2246 Remove TreeStyleTabBase.getBoxObjectFor().
At this time, this method is not used in this addon.
2013-01-04 12:44:29 +09:00
saneyuki_s
665cb5668f Move TreeStyleTabBase.evalInSandbox() to TreeStyleTabUtils. 2013-01-04 12:39:58 +09:00
saneyuki_s
94067b8bf8 Add the constant to cache 'Components.utils' to modules/utils.js. 2013-01-04 12:32:05 +09:00
YUKI "Piro" Hiroshi
05dd8078b3 Merge pull request #437 from saneyuki/pref
Not setting '.override' pref when uninstall/diasble this addon
2013-01-03 18:06:23 -08:00
YUKI "Piro" Hiroshi
fc32a2e31b Merge pull request #432 from saneyuki/getter
Change TreeStyleTabUtils.prefs to simple getter
2013-01-03 10:37:37 -08:00
saneyuki_s
c732e5e280 Not setting '.override' pref when uninstall/diasble this addon. 2013-01-04 02:57:38 +09:00
Piro / YUKI Hiroshi
d7d988ee96 Fix syntax error 2013-01-04 01:34:08 +09:00
YUKI "Piro" Hiroshi
f914c5cc72 Merge pull request #435 from saneyuki/string
Move string bundles to TreeStyleTabUtils
2013-01-03 08:24:27 -08:00
saneyuki_s
a7fc238e4e Move string bundles to TreeStyleTabUtils. 2013-01-03 11:08:25 +09:00
saneyuki_s
b4ee0ed4ff Split restoring some prefs which are handled in modules/base.js. 2013-01-03 10:04:09 +09:00
saneyuki_s
e32cb52068 Merge branch 'uninstall' into pref2
Conflicts:
	modules/window.js
2013-01-03 10:01:03 +09:00
saneyuki_s
ab170f086c Fix to fail loading module. 2013-01-03 09:59:43 +09:00
saneyuki_s
9cc3f04f14 Load UninstallationListener.js as JS code modules. 2013-01-03 09:56:57 +09:00
saneyuki_s
d2ee91b604 Use Function.bind() instead of 'self'. 2013-01-03 09:07:55 +09:00
saneyuki_s
cec873a303 Define 'prefs' as lazy getter in modules/window.js 2013-01-03 09:06:21 +09:00
saneyuki_s
af929f6858 Change TreeStyleTabUtils.prefs to simple getter. 2013-01-02 05:57:37 +09:00
saneyuki_s
5042651b81 Restore the backuped user pref when this addon is disabled or removed. 2013-01-02 04:46:26 +09:00
saneyuki_s
92d98ba51b Fix typo. 2013-01-02 04:46:26 +09:00
YUKI Hiroshi
4797ddfb6b Don't raise error while dragging of non-tab objects over the tab bar 2012-12-21 13:56:46 +09:00
Piro / YUKI Hiroshi
175286eba2 Update codes for MutationObserver.
XPIDL style callback is no longer supported, so we have to use callback function based on Web IDL.
See: https://bugzilla.mozilla.org/show_bug.cgi?id=790978 and https://developer.mozilla.org/en-US/docs/DOM/MutationObserver)
2012-12-20 04:03:05 +09:00
YUKI Hiroshi
5718fef495 Collapse/hide the tab bar automatically even if the webpage includes any plugin area
Logic A) Tab bar autohide is intentionally blocked by opened popup because the tab bar should not be hidden while you open a context menu on the tab bar.
Logic B) On the other hand, TST shows hidden popup on the content area if the webpage includes any plugin area, because Firefox cannot receive mousemove events on plugin areas.
As the result, the hidden popup unexpectedly blocked to hide the tab bar... The popup for the logic B must be ignored by the logic A.
2012-12-05 11:35:37 +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
196bb1e93c Calculate drop position correctly (fix https://github.com/piroor/treestyletab/issues/399#issuecomment-10961365) 2012-12-04 02:04:06 +09:00
Piro / YUKI Hiroshi
5e09e88bb2 Operate drag and drop of pinned tabs more correctly 2012-12-04 01:40:31 +09:00
Piro / YUKI Hiroshi
8e37edc535 find tab from screen coordinates more quickly 2012-12-04 01:16:20 +09:00
Piro / YUKI Hiroshi
8511c0e9ce Operate dragging of pinned tabs (not faviconized) correctly 2012-12-04 00:28:23 +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
b38c6f8066 Optimize to collect "not dragged" tabs 2012-11-30 03:21:56 +09:00
YUKI Hiroshi
da462ef098 Fix behaviors around dragging of multiple tabs 2012-11-30 03:03:59 +09:00
YUKI Hiroshi
fa893b9801 Change the algorythm to find tab from coordinate based on _animateTabMove 2012-11-30 00:58:47 +09:00
YUKI Hiroshi
18d4fec990 Fix wrong dragging animations of pinned tabs in the vertical tab bar 2012-11-28 18:49:03 +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
5b07dc8a65 Open new tabs from Linky as child tabs of the current tab even if they are opened vi a dialog (fix #411) 2012-11-26 02:18:23 +09:00
YUKI Hiroshi
8a490b0f12 Update credits 2012-11-21 11:06:11 +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
9a27aba8d8 Don't run animation without window (to fix a regression: all animation effect was unexpectedly stopped after the configuration dialog is opened) 2012-11-12 03:28:40 +09:00
Piro / YUKI Hiroshi
450fa34790 Simplify codes to load modules lazily 2012-11-11 22:48:42 +09:00
Piro / YUKI Hiroshi
c4342a5d43 Simplify implementation of the animation manager (to fix unexpected-stop problems) 2012-11-11 22:30:45 +09:00
Piro / YUKI Hiroshi
0c86b970ac Drop support for Firefox 3.6 and olders.
And, make the implementation (possibly) robust for multiple windows to fix #385, #387, #390.
2012-11-09 01:33: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
YUKI Hiroshi
22f8f1f6d2 Remove trailing "," in object literals 2012-10-24 01:39:30 +09:00
saneyuki_s
3e658380c9 Move some pref methods from TSTBase to TSTUtils. 2012-10-19 23:20:08 +09:00
Piro / YUKI Hiroshi
147d38aef3 Accept drop of non-tab objects onto the tab bar correctly on Firefox 16 and olders 2012-10-14 03:54:46 +09:00
Piro / YUKI Hiroshi
5bd57741df Accept drop of non-tab objects onto the tab bar correctly 2012-10-14 03:47:34 +09:00
Piro / YUKI Hiroshi
9182259ab5 Update credit 2012-10-14 03:31:06 +09:00
Piro / YUKI Hiroshi
153f271479 Use Services.jsm 2012-10-13 04:18:59 +09:00
YUKI "Piro" Hiroshi
c5bb7ec8ad Merge pull request #349 from Infocatcher/patch-11
Use checkLoadURIStrWithPrincipal() instead of checkLoadURIStr()
2012-10-12 12:16:41 -07:00
Piro / YUKI Hiroshi
49810b0f31 Restore opacity of dragged tabs correctly (again) 2012-10-13 03:16:08 +09:00
Piro / YUKI Hiroshi
c1770fe9f0 Restore opacity of dragged tabs correctly 2012-10-13 03:05:48 +09:00
Piro / YUKI Hiroshi
5dec3a90ce Make transparent dragged tabs when they are going to be dropped onto a tab 2012-10-13 02:56:02 +09:00
Piro / YUKI Hiroshi
0db8f5f765 Handle hidden/collapsed tabs while tab dragging correctly 2012-10-13 02:43:34 +09:00
Piro / YUKI Hiroshi
d66b7083d2 Add line breaks for dynamic patches 2012-10-13 02:24:02 +09:00
Piro / YUKI Hiroshi
a314e75bdb Update visual effects for tab dragging animation correctly, for trees expanded while dragging 2012-10-13 02:18:16 +09:00
Piro / YUKI Hiroshi
b2a90224d6 Calculate drop position based on visual positions of tabs 2012-10-13 02:09:34 +09:00
Piro / YUKI Hiroshi
cefa9b52fa Calculate actual tab position for Firefox 16 and olders 2012-10-13 00:41:03 +09:00
Piro / YUKI Hiroshi
4d19cd75c6 Process animation effect for dragged tabs correctly 2012-10-13 00:37:03 +09:00
YUKI Hiroshi
83626af553 Reduce use of <![CDATA[ ... ]]> 2012-10-12 16:46:37 +09:00
YUKI Hiroshi
d71a063db5 Update Multiple Tabs Drag and Drop Utilities 2012-10-11 20:03:40 +09:00
saneyuki_s
f4340866c0 Rename the file name to modules/base.js from modules/utils.js . 2012-09-27 15:46:51 +09:00
saneyuki_s
f27cfc745a Rename to 'TreeStyleTabBase' from 'TreeStyleTabUtils'. 2012-09-27 15:40:14 +09:00
YUKI "Piro" Hiroshi
efa6a309f3 Merge pull request #367 from saneyuki/props
Remove some properties which returns Services.foo from TreeStyleTabUtils
2012-09-24 01:10:41 -07:00
Piro / YUKI Hiroshi
f9f346f522 Merge branch 'master' of github.com:piroor/treestyletab 2012-09-23 23:44:56 +09:00
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