Commit Graph

124 Commits

Author SHA1 Message Date
YUKI Hiroshi
09f43c8f84 Use LF instead of CRLF 2014-09-30 20:09:27 +09:00
Piro / YUKI Hiroshi
66eb630cdf Revert "Read value of custom attributes of tabs via TSTBase.getTabAttribute() safely."
This reverts commit f4fb6174d2.

This change breaks other features...
2014-07-02 04:44:43 +09:00
Piro / YUKI Hiroshi
f4fb6174d2 Read value of custom attributes of tabs via TSTBase.getTabAttribute() safely.
Tab's ID and other attributes saved via setTabValue is not available before the tab is completely restored.
As the result, TST sometimes fail to restore tab positions. (See: #676)
This issue doesn't happen on Firefox 24ESR, because recent Firefox (29 and later) uses message manager to restore tabs and it causes such "delay" of initializations about custom attributes.
2014-07-02 04:29:49 +09:00
YUKI Hiroshi
482bab417b Use String#trim() instead of String#replace() 2014-03-31 15:10:51 +09:00
Piro / YUKI Hiroshi
8a2989c03e Don't start dragging operation of the tab bar itself from a button which have its own popup menu (#656) 2014-02-09 01:06:35 +09:00
Piro / YUKI Hiroshi
905100500f Accept drag and drop of the tab bar itself, on the blank area around pinned tabs 2014-02-09 01:00:04 +09:00
YUKI Hiroshi
c91ffcac54 Remove codes for outdated versions of Firefox 2014-01-30 12:36:36 +09:00
Piro / YUKI Hiroshi
e7afa3b86d Allow to move pinned tabs by dragging correctly (#585) 2013-11-28 04:42:44 +09:00
Piro / YUKI Hiroshi
1198defd82 Detect drop position on pinned tabs correctly (#585)
This is partial fix.
2013-11-28 04:30:10 +09:00
Piro / YUKI Hiroshi
969372adea Remove non-ASCII comment 2013-11-28 04:17:17 +09:00
Piro / YUKI Hiroshi
461a8aca98 Update credit 2013-11-10 04:28:07 +09:00
Piro / YUKI Hiroshi
c2fee561d1 Respect the behaviour of "Disable detach and tear off tab" (#540)
The addon provides ability to disable tearing off of dragged tab:
https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t/
but TST killed the feature...
2013-08-21 02:18:30 +09:00
Piro / YUKI Hiroshi
032d36d28c Support getShortcutOrURIAndPostData() on Firefox 25 and later.
See also:
https://github.com/piroor/treestyletab/issues/524
https://bugzilla.mozilla.org/show_bug.cgi?id=846635
2013-07-27 03:47:53 +09:00
Piro / YUKI Hiroshi
a18af8638f Deactivate debugging flag 2013-07-27 01:35:22 +09:00
Piro / YUKI Hiroshi
df8ccdd54d Find "insert before" reference tab and move the dragged tab to the upper level correctly, even if the parent tab has no next sibling.
This should work for cases like #297.
2013-07-27 00:19:47 +09:00
Piro / YUKI Hiroshi
873a810eb0 Suppress error while the last tabs is dragged over the tab itself 2013-07-26 23:42:11 +09:00
Piro / YUKI Hiroshi
6fe9401c39 Suppress errors while dragging the tab bar itself 2013-03-06 01:51:24 +09:00
Piro / YUKI Hiroshi
948883c891 Find pseudo drop target tab from the drop position for dragging on the bottom of the tab bar correctly (#461) 2013-03-06 00:26:23 +09:00
YUKI Hiroshi
cd858d12f3 Find pseudo drop target tab from the drop position for dragging on the top or bottom of the tab bar (#461) 2013-03-05 18:48:49 +09:00
Piro / YUKI Hiroshi
acd1d744f5 Move dragged tab to the correct position, even if there are hidden tabs. 2013-03-03 03:48:24 +09:00
Piro / YUKI Hiroshi
0140ae8a49 Make dragging tabs transparently always, to see the drop position marker 2013-03-02 22:22:50 +09:00
Piro / YUKI Hiroshi
72d38659d8 TreeStyleTabBase should not inherit "prefs" 2013-01-06 11:47:50 +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
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
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
18d4fec990 Fix wrong dragging animations of pinned tabs in the vertical tab bar 2012-11-28 18:49:03 +09:00
Piro / YUKI Hiroshi
450fa34790 Simplify codes to load modules lazily 2012-11-11 22:48:42 +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
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
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
4d19cd75c6 Process animation effect for dragged tabs correctly 2012-10-13 00:37:03 +09:00
YUKI Hiroshi
d71a063db5 Update Multiple Tabs Drag and Drop Utilities 2012-10-11 20:03:40 +09:00
Piro / YUKI Hiroshi
a6792a2b4b Reduce usecases of evaluateXPath() 2012-09-23 15:43:49 +09:00
saneyuki_s
ee71d841c4 Call Services.io directly in modules/tabbarDNDObserver.js. 2012-09-18 01:18:05 +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