Commit Graph

1332 Commits

Author SHA1 Message Date
YUKI Hiroshi
983edcb17a Simply use Timer.jsm 2015-11-05 16:43:59 +09:00
YUKI Hiroshi
5a9da781a8 Fix indent 2015-11-05 16:08:15 +09:00
YUKI Hiroshi
92e8912256 Dump more debug information 2015-11-05 16:00:32 +09:00
Piro / YUKI Hiroshi
7ffc1f3b89 Don't activate "tabs on top" after toolbar customizations (See #968) 2015-11-04 23:21:42 +09:00
YUKI Hiroshi
1029b40e09 Follow to changes introduced by the bug 1207594.
The method "_setEffectAllowedForDataTransfer" was renamed to "_getDropEffectForTabDrag".
2015-11-04 11:43:54 +09:00
YUKI Hiroshi
f75443ce6f Fix indent 2015-11-02 16:15:48 +09:00
YUKI Hiroshi
7e5916cce5 Allow to update the size of the tab bar by other addons with the nsDOMTreeStyleTabTabbarRendered event 2015-11-02 16:14:46 +09:00
YUKI Hiroshi
050a87e108 Dispatch custom event to notify other addons that the tab bar is rendered by TST.
This event is required to fix the issue #938 with Unified Sidebar.
2015-11-02 16:01:35 +09:00
YUKI Hiroshi
809cc403c6 Clear "last mousedown target" after mouseup event at anywhere 2015-11-02 15:18:23 +09:00
YUKI Hiroshi
ac78634432 Hide the tab bar automatically after a tab is moved by drag-and-drop. 2015-11-02 15:06:44 +09:00
YUKI Hiroshi
b3211b64e2 Output more debug information 2015-11-02 14:43:27 +09:00
YUKI Hiroshi
5111cf446b Don't apply "auto hide" prefs for mismatched mode 2015-11-02 12:00:24 +09:00
Piro / YUKI Hiroshi
8b2af7ce6f Fix misplaced tab bar when I exit from the DOM fullscreen mode (#957) 2015-10-31 00:53:29 +09:00
YUKI Hiroshi
d911e243c6 Open new search result tab as a child of the current tab, when a selection text is dragged and dropped to the searchbar.
This should fix the issue #884
2015-10-30 17:47:14 +09:00
YUKI Hiroshi
ee0937ee43 Get selection text from remote tab for context search.
This partially fixes the problem reported at #884
2015-10-29 12:17:08 +09:00
Piro / YUKI Hiroshi
036ca2a5d5 Hide toolbar related elements completely in the DOM fullscreen mode.
The "inDOMFullscreen" attribute is introduced at Firefox 36 by http://hg.mozilla.org/mozilla-central/rev/3aef39ca3919 and now TST supports only Firefox 38 and newer. So we should use it instead of my custom attribute.
2015-10-27 00:42:52 +09:00
YUKI Hiroshi
ad15b22b39 Output more debug prints 2015-10-26 18:50:38 +09:00
YUKI Hiroshi
42c0bfa407 Indent stack trace 2015-10-26 18:50:27 +09:00
YUKI Hiroshi
c99c259549 Load required module 2015-10-26 16:46:20 +09:00
YUKI Hiroshi
b3b335b5da Load required modules correctly 2015-10-26 16:43:25 +09:00
YUKI Hiroshi
5bd7112a24 Control more debug prints by preferences 2015-10-26 16:37:28 +09:00
YUKI Hiroshi
de777e7ff2 Control debug prints via preferences 2015-10-26 16:32:31 +09:00
Piro / YUKI Hiroshi
8185bafaae Define global symbol which to be exported, by "var" instead of "const".
This should avoid the issue caused by new behavior of ES6 "const".
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1202902
2015-10-11 12:40:17 +09:00
Piro / YUKI Hiroshi
f2e07bd5b7 Define constant objects with "var", not "const".
Objects defined with "const" cannot be exported by the method:

    let { SymbolName } = Cu.import("URL", {})

because variables defined with "const" are not stored as a property of the global object, at Firefox 44 and later.
2015-10-10 19:25:00 +09:00
YUKI Hiroshi
9985efab20 Fix typo 2015-10-05 20:04:10 +09:00
YUKI Hiroshi
b4cac92814 Update insertion position info about detached tabs by the method detachTab itself 2015-10-05 20:02:04 +09:00
YUKI Hiroshi
b248f68fad Update insertion position info of old previous/next tabs after rearrangement 2015-10-05 19:57:17 +09:00
YUKI Hiroshi
7c592fce12 Gather methods to update insertion position info of tabs 2015-10-05 19:56:02 +09:00
YUKI Hiroshi
7c0abf4ee9 Ignore null argument 2015-10-05 19:55:33 +09:00
YUKI Hiroshi
055a64f114 Use commom method to fixup insertion info 2015-10-05 19:34:54 +09:00
YUKI Hiroshi
6fd907ff9a Use meanignful method name 2015-10-05 19:33:50 +09:00
YUKI Hiroshi
3980ea3c5d Add method to dump stored tree structure.
gBrowser.treeStyleTab.dumpTreeInformation() exports the result as an object, so you can see the result like:

  JSON.stringify(gBrowser.treeStyleTab.dumpTreeInformation())

via the browser console.
2015-10-05 19:21:41 +09:00
YUKI Hiroshi
586ab135c3 Remove needless information to reference sibling tabs after rearrangement.
This commit is related to the issue #735
2015-10-05 18:59:13 +09:00
YUKI Hiroshi
47ee8fe048 Don't update the size of the floating tab bar when any descendant of self-managed elements is modified.
This should conflict with Unified Sidebar. See: #938
2015-10-05 16:58:08 +09:00
Piro / YUKI Hiroshi
dd6a01532d Add credit 2015-09-29 06:18:14 +09:00
Piro / YUKI Hiroshi
01eae840aa Partially revert 04b06ef084
Regression: width of tab bar is wrongly reset on the next startup.
2015-09-29 05:11:12 +09:00
Piro / YUKI Hiroshi
2018b2063e Apply new size of the tab bar specified at the configuration dialog, for all windows 2015-09-29 04:50:16 +09:00
Piro / YUKI Hiroshi
04b06ef084 Apply new pref value only for the topmost browser window smartly 2015-09-29 03:45:10 +09:00
YUKI Hiroshi
fe39d5d6f3 Fix mismatched references 2015-09-28 21:42:05 +09:00
YUKI Hiroshi
5913bf1f86 Don't shrink tab bar when a tab is closed or the focus is moved 2015-09-28 21:08:49 +09:00
YUKI Hiroshi
8e47c84fd0 Output more debug print for show/hide of the tab bar 2015-09-28 21:08:33 +09:00
YUKI Hiroshi
3a3d0945c7 Place sound button in tabs before the closebox 2015-09-28 20:33:31 +09:00
YUKI Hiroshi
b607f36586 Update library to fix broken preferences dialog at Firefox 42
See: https://github.com/piroor/treestyletab/issues/944#issuecomment-143146598
2015-09-25 17:24:55 +09:00
YUKI Hiroshi
a43b31b5c7 Set tab-strip-element attribute for the tabbar internal box ceratinly.
TreeStyleTabBrowser#init() fails to set the attribute for the tabbar internal box,
so resizing of the element is unexpectedly tracked by BrowserUIShowHideObserver
even if it is triggered by the "auto hide" feature. It causes the bug #942.
When the mouse cursor moves onth the shrunken tab bar, autohide service expands
the width of the tab bar by setting width/height attribuets. Such a "resizing"
must be ignored by BrowserUIShowHideObserver because only unexpected resizing
caused by other addons triggers "update size of the floating tab bar".
2015-09-25 15:32:58 +09:00
YUKI Hiroshi
ae050bba76 Output more debug print 2015-09-25 15:26:40 +09:00
YUKI Hiroshi
f42c8c14bd Output attribute old value in the debug print 2015-09-25 15:10:19 +09:00
YUKI Hiroshi
af4c15f08d Report the reason why the tab bar is collapsed/expanded 2015-09-25 14:36:20 +09:00
YUKI Hiroshi
888a858a7d More debug prints 2015-09-25 14:36:01 +09:00
YUKI Hiroshi
cbf0cbd47e Open new dummy tab when a blank bookmark folder is droppend to the tab bar (inspired from #923) 2015-08-31 18:55:54 +09:00
YUKI Hiroshi
15666abfcb Call renamed methods correctly 2015-08-28 17:39:04 +09:00
Xidorn Quan
1e8a1bc324 Fix Fullscreen API issue for Firefox 41+.
This is a change from bug 1161802 which makes the "fullscreen" event be
triggered after window.fullScreen value flips.
2015-08-18 12:11:23 +10:00
YUKI Hiroshi
27efc4311d Update library 2015-07-24 11:14:57 +09:00
J. Ryan Stinnett
008a520efd Replace mozRequestAnimationFrame with requestAnimationFrame. Fixes #915 2015-07-22 10:43:47 -05:00
Piro / YUKI Hiroshi
b6e4abe842 Update library 2015-06-13 00:19:58 +09:00
Piro / YUKI Hiroshi
daa27ee336 Clear temporary position information of the tab bar after it is permanently changed.
This seems to fix broken appearance issue around toolbar customization (on second try or later).
2015-06-13 00:16:21 +09:00
Piro / YUKI Hiroshi
8df88139d4 Remove obsolete utility 2015-06-13 00:06:54 +09:00
Piro / YUKI Hiroshi
f9aa9d123c Restore/reinit tabbar asynchronously on toolbar customization 2015-06-13 00:06:15 +09:00
Piro / YUKI Hiroshi
48ee58e3a2 Send shutdown event correctly 2015-06-12 23:45:47 +09:00
Piro / YUKI Hiroshi
6bdfafd2f8 Broadcast message for content processes correctly when a window is closed 2015-06-12 23:32:38 +09:00
Piro / YUKI Hiroshi
523848a7ed Migrate from "selected" to "visuallyselected" attribute.
See also: http://www.hackermusings.com/2015/06/electrolysis-a-tale-of-tab-switching-and-themes/
2015-06-11 03:28:00 +09:00
YUKI Hiroshi
0c2c33e19d Fix typo 2015-03-19 18:12:07 +09:00
YUKI Hiroshi
d2d68a6437 Avoid errors from elements without box object 2015-03-19 11:32:03 +09:00
YUKI Hiroshi
6efc491e66 Cancel previous scroll before scroll to tab group 2015-03-19 11:20:52 +09:00
YUKI Hiroshi
d7963e36be Extract logic to scroll to specified tabs, from the method to scroll to a tree 2015-03-19 10:24:47 +09:00
YUKI Hiroshi
445ebbcf35 Update visibility of tab bar by status change of related elements more robustly #848 2015-03-18 11:25:33 +09:00
Piro / YUKI Hiroshi
eccfe1ea8d Don't move scroll position if the target tab is already in the viewport (regression by the previous commit) 2015-03-18 02:59:58 +09:00
Piro / YUKI Hiroshi
4ff4584833 Use Firefox's native smooth scrolling method if possible, to activate accelerations #856 2015-03-18 02:52:02 +09:00
Piro / YUKI Hiroshi
d0fb0280e8 Fix indent 2015-03-18 02:40:08 +09:00
Piro / YUKI Hiroshi
d821755f2f Extract implementations about smooth scrolling 2015-03-18 02:39:36 +09:00
YUKI Hiroshi
0cae72fd00 Cancel previous scroll if the new to-be-scrolled tab is in the viewport 2015-03-17 18:57:12 +09:00
YUKI Hiroshi
d41a66603e Scroll to expanded tree more intelligently 2015-03-17 18:29:09 +09:00
YUKI Hiroshi
ec76dd9c04 Remove needless event handler for wheel scrolling on the tab bar 2015-03-17 17:49:39 +09:00
YUKI Hiroshi
f0c012710d Use given duration 2015-03-17 16:06:20 +09:00
YUKI Hiroshi
c97b42abb9 Send re-init message only for remoteness changed tab 2015-03-13 16:56:32 +09:00
YUKI Hiroshi
8705564a98 Restart listening of mouse events after browser remoteness is changed 2015-03-13 16:45:38 +09:00
YUKI Hiroshi
4ad032d55c Listen messages from the content process with single listener for the window, instead of separate listeners for each frame.
If we register listeners for each frame, they don't work after the type of related browser is changed between remote and in-process.
2015-03-13 16:37:02 +09:00
YUKI Hiroshi
64f488575e Don't touch to browser.contentWindow if it is remote 2015-03-13 15:58:40 +09:00
Piro / YUKI Hiroshi
4acdd4104b Show Firefox Hello chat boxes only on the content area (Don't show chat boxes behind tabs) #753 2015-03-06 01:56:44 +09:00
Piro / YUKI Hiroshi
ff9b670d17 Handle mousemove events on the fullscreen toggler #801 2015-03-06 00:42:30 +09:00
Piro / YUKI Hiroshi
7ab47dd15d Apply initial or last auto hide mode for newly opened and restored windows correctly 2015-03-05 23:59:19 +09:00
Piro / YUKI Hiroshi
e0db926068 Manage auto hide mode for each fullscreen window 2015-03-05 23:13:50 +09:00
Piro / YUKI Hiroshi
aa375bea22 Detect opener tab more correctly when multiple tabs are opened at once from a remote tab #812
However, some cases are still not supported:

 * When the new tab has no referrer
 * When any opened tab has an URI same to the opener tab
2015-03-05 02:36:14 +09:00
YUKI Hiroshi
be375327ca Set temporary position after it is completely updated 2015-03-04 10:16:12 +09:00
YUKI Hiroshi
4d99d0e067 Fix indent 2015-03-04 09:51:58 +09:00
YUKI Hiroshi
5b612b9a84 Use <xul:browser>'s mapScreenCoordinatesFromContent only when it exists 2015-03-04 09:51:27 +09:00
YUKI Hiroshi
8cc5be8103 Use <xul:browser>'s mapScreenCoordinatesFromContent() method instead of custom one 2015-03-04 09:47:03 +09:00
Piro / YUKI Hiroshi
f9c865710a Correct mismatched pair of shrunken and expanded width of the tab bar 2015-03-04 02:19:07 +09:00
Piro / YUKI Hiroshi
e80ffd1b11 Save position safely 2015-03-04 01:45:09 +09:00
Piro / YUKI Hiroshi
a6fe5e8fdb Set expanded width of the tab bar correctly 2015-03-04 01:34:24 +09:00
Piro / YUKI Hiroshi
2d8649735e Manage position of the tab bar for each window 2015-03-04 01:22:22 +09:00
Piro / YUKI Hiroshi
ff38e9587c Manage width and height of the tab bar for each window 2015-03-04 00:44:01 +09:00
Piro / YUKI Hiroshi
f608eb1374 Restore message for debugging 2015-03-03 23:12:47 +09:00
Piro / YUKI Hiroshi
95c403efa0 Restore per-window auto hide mode correctly 2015-03-03 23:11:55 +09:00
YUKI Hiroshi
8a1e2f20fa Restore window's auto hide state with delay for safety 2015-03-03 20:49:00 +09:00
YUKI Hiroshi
410ccad473 Make blank line for readability 2015-03-03 20:48:49 +09:00
YUKI Hiroshi
0ab37f5757 Fix wrong references 2015-03-03 20:48:19 +09:00
YUKI Hiroshi
fbc6500262 Don't override autohide state of other windows by last window's state 2015-03-03 20:47:45 +09:00
YUKI Hiroshi
f492f36b4d Apply restored mode only by window service, not browser service 2015-03-03 20:13:35 +09:00
YUKI Hiroshi
7b038dce32 Don't restore initial mode for new window 2015-03-03 20:10:12 +09:00
YUKI Hiroshi
2398b837b0 Add missing ";" on the end of line 2015-03-03 20:10:01 +09:00
YUKI Hiroshi
b0899c5d07 Apply new mode manually 2015-03-03 20:06:14 +09:00
YUKI Hiroshi
480f3c4c6f Observe preference changes about autohide by the module itself 2015-03-03 20:01:03 +09:00
YUKI Hiroshi
3ae3bad1b4 Store last autohide mode after deactivating correctly 2015-03-03 19:53:26 +09:00
YUKI Hiroshi
67fcb13e05 Apply autoHide mode only for the active window 2015-03-03 19:49:34 +09:00
YUKI Hiroshi
af8a061ca1 Store and restore last autohide mode for each window 2015-03-03 19:45:44 +09:00
YUKI Hiroshi
949fab8ae3 Store last mode 2015-03-03 19:22:24 +09:00
YUKI Hiroshi
a829f25bba Extract constant definitions to a shared base object 2015-03-03 19:16:27 +09:00
YUKI Hiroshi
cd46194bb0 Return boolean value for "isXXX" property 2015-03-03 19:10:35 +09:00
YUKI Hiroshi
6802444a23 Save last autohide state as window value 2015-03-03 19:07:52 +09:00
YUKI Hiroshi
b09881797a Allow to store zero and false values 2015-03-03 19:05:53 +09:00
YUKI Hiroshi
253e581173 Add utility methods to manage window values 2015-03-03 19:01:24 +09:00
YUKI Hiroshi
801c28bd1a Simplify 2015-03-03 18:57:21 +09:00
YUKI Hiroshi
767479f9f1 Break line for condition and operation 2015-03-03 18:56:55 +09:00
Piro / YUKI Hiroshi
10c0108f40 Don't use obsolete String#quote().
This fixes the issue #821.
2015-03-01 23:41:39 +09:00
Piro / YUKI Hiroshi
78de7e6b35 Bump copyright year 2015-03-01 23:37:49 +09:00
Piro / YUKI Hiroshi
0afae1c655 Don't try to scroll to the selected tab when it is already in the viewport in its axis.
This fixes annoyingly horizontal scroll happend when ColourfulTabs is activated. #842
2015-03-01 23:35:28 +09:00
Piro / YUKI Hiroshi
54b2c981b1 Fix too deep indent 2015-02-27 00:59:53 +09:00
Piro / YUKI Hiroshi
6352d57858 Remove deprecated JS1.7's let blocks 2015-02-27 00:59:31 +09:00
Piro / YUKI Hiroshi
d5b2d18df2 Add information of the related bug 2014-12-02 03:43:13 +09:00
YUKI Hiroshi
1cf6887ff7 Output more debug-friendly messages for the "autohide" feature 2014-12-01 23:25:48 +09:00
YUKI Hiroshi
02426e5bc0 Detect mouse pointer's position correctly to show/hide the tab bar automatically. 2014-12-01 23:25:16 +09:00
YUKI Hiroshi
66f16dde50 Accept null input by getTabFromFrame().
This suppresses a crash error reported on https://bugzilla.mozilla.org/show_bug.cgi?id=1098688
2014-11-19 12:25:56 +09:00
YUKI Hiroshi
3663519efd Return the current browser immediately if possible 2014-11-19 12:25:39 +09:00
xinkai
249c9b6287 wiew should be view.
This typo causes TST unable to reshow the tabs after FF exiting full-screen mode.
2014-11-16 13:18:14 +08:00
YUKI Hiroshi
18e105a561 Don't make hidden the tab bar by clicking on the grippy to expand the collapsed tab bar. (#783) 2014-11-13 17:24:59 +09:00
Piro / YUKI Hiroshi
3de030ce48 Report errors if TST fails to apply patch to Firefox's functions 2014-11-13 02:13:23 +09:00
YUKI Hiroshi
b82f087f87 Don't clear existing tab relation, if the relation is restored and going to be cleared on same TabMove event 2014-11-12 12:46:26 +09:00
YUKI Hiroshi
b4bba86e30 Don't restore same tab multiple times 2014-11-12 12:39:06 +09:00
YUKI Hiroshi
1d988c6b3f Fix typo 2014-11-12 11:43:08 +09:00
Piro / YUKI Hiroshi
2e6c885ba3 Restore closed tabs at once correctly, even if e10s is activated. 2014-11-12 03:58:09 +09:00
YUKI Hiroshi
35d3cff449 Reduce arguments of setTimeout 2014-11-11 21:21:41 +09:00
YUKI Hiroshi
e43dd394c4 Report internal error while restoring tree 2014-11-11 21:21:27 +09:00
YUKI Hiroshi
09112ca600 Update library 2014-11-11 19:56:58 +09:00
YUKI Hiroshi
933d71a1f6 Specify missing "this" correctly 2014-11-11 19:39:22 +09:00
YUKI Hiroshi
8d2dc51963 Add missing module 2014-11-11 19:27:53 +09:00
YUKI Hiroshi
1cfa12c5bc Update pseudo tree of tabs in e10s mode 2014-11-11 19:26:14 +09:00
YUKI Hiroshi
97a87d0b1a Remove obsolete "stopRendering" module 2014-11-11 18:58:31 +09:00
YUKI Hiroshi
53e805b4d9 Remove obsolete comment 2014-11-11 18:51:28 +09:00
YUKI Hiroshi
901542a526 Update comment for future versions without nsIPopupBoxObject 2014-11-11 18:47:58 +09:00
YUKI Hiroshi
06c89a80c2 Check existence of plugin area in the current tab asynchronously with e10s 2014-11-11 18:42:30 +09:00
YUKI Hiroshi
2d098719dc Don't hide/collapse tab bar while tab switching 2014-11-11 18:15:28 +09:00
YUKI Hiroshi
ca21663eb5 Ignore attribute-changes without changing of visual size of UI elements 2014-11-11 18:09:27 +09:00
YUKI Hiroshi
02bcfe5d8b Handle mouse events for auto hide feature by a frame script, for e10s 2014-11-11 17:45:12 +09:00
YUKI Hiroshi
ee8918e460 Merge branch 'master' of github.com:piroor/treestyletab 2014-10-30 12:27:26 +09:00
YUKI Hiroshi
e5171ea638 Fix mismatched variable name 2014-10-30 12:26:41 +09:00
Piro / YUKI Hiroshi
9c2a175e6a Find <tabbrowser> from <browser> correctly 2014-10-30 06:20:44 +09:00
YUKI Hiroshi
86b46c04cd Add a note for safely "contentWindow" access 2014-10-29 20:44:01 +09:00
YUKI Hiroshi
12cdd76f7e Detect targets for API calls about tab relations based on "browser" element, instead of "Window" objects 2014-10-29 20:36:12 +09:00
YUKI Hiroshi
e48cf4e38b Uniform coding style 2014-10-22 13:37:08 +09:00
Matthew Noorenberghe
4ea8f31301 Fix scrolling of tabs on Firefox 36 2014-10-21 18:23:17 -07:00
Piro / YUKI Hiroshi
9be3c3493d Flatten deeply nested "setTimeout()" 2014-10-22 03:00:12 +09:00
Piro / YUKI Hiroshi
e0a7e43b3c Flatten deeply nested "setTimeout()" 2014-10-22 02:57:45 +09:00
Piro / YUKI Hiroshi
f89d42db14 Free symbol after all accesses 2014-10-22 02:36:38 +09:00
Piro / YUKI Hiroshi
fe26d207ca Migrate from JSDeferred to ES6 Promise (Promise.jsm) 2014-10-22 02:28:19 +09:00
YUKI Hiroshi
4f43006773 Use latest JSDeferred (based on Official) 2014-10-21 21:44:13 +09:00
YUKI Hiroshi
b0b2305bd7 Output index of the "to be restored" tabs for debugging 2014-10-16 18:00:55 +09:00
YUKI Hiroshi
397894d678 Don't mark tab to be restored, if it is already restored 2014-10-16 18:00:37 +09:00
Piro / YUKI Hiroshi
e62cd87bff Open new tabs from target="_blank" links as children of the current tab, when e10s is enabled. 2014-10-02 02:51:43 +09:00
Piro / YUKI Hiroshi
72ae666e12 Restore ancestor relation of tabs even if it is restored by "undo close tab" 2014-10-02 02:10:10 +09:00
Piro / YUKI Hiroshi
35aab258b8 Update the "to be restored" state only once.
Don't update the state again and again, because the tab is unexpectedly "restored" twice after I do "undo close tab"...
2014-10-02 00:57:17 +09:00
Piro / YUKI Hiroshi
db487f32bb Detect DOM instances by constructor function instead of XPCOM interface 2014-10-01 01:32:27 +09:00
Piro / YUKI Hiroshi
fc7f336c69 Detect window safely 2014-10-01 00:27:30 +09:00
Piro / YUKI Hiroshi
20e58a5b0b Update library 2014-10-01 00:23:08 +09:00
YUKI Hiroshi
09f43c8f84 Use LF instead of CRLF 2014-09-30 20:09:27 +09:00
YUKI Hiroshi
db4d2bac2c Update cached "toBeRestored" state for TSTWindow#restoringTree and others 2014-09-30 17:06:49 +09:00
YUKI Hiroshi
b7389dd744 Remove duplicated check ror to-be-restored tab 2014-09-30 16:46:33 +09:00
YUKI Hiroshi
e3c589406d Output message for debugging around unexpected new child tab 2014-09-30 15:13:10 +09:00
YUKI Hiroshi
af6e5d0ba7 Don't open new tab from Ctrl-T as a new tab from content link 2014-09-30 15:12:29 +09:00
YUKI Hiroshi
a9f1f8a86d Fix mismatched function name 2014-09-30 15:01:44 +09:00
YUKI Hiroshi
8fc1998fd4 Stringify saved value.
This is required to bypass type check introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=908440
2014-09-30 14:31:08 +09:00
John Schoenick
0cc0714723 Fix click hook for nesting new tabs in e10s mode 2014-08-27 16:17:00 -07:00
John Schoenick
b64986b292 Workaround for bug 1042680 issue #3 in e10s mode 2014-08-27 16:16:41 -07:00
Piro / YUKI Hiroshi
503803c076 Drop support for Firefox 30 or older versions.
Because Firefox 31 becomes new ESR.
2014-07-27 02:44:23 +09:00
Piro / YUKI Hiroshi
fffcd3172f Fix typo 2014-07-03 02:06:10 +09:00
Piro / YUKI Hiroshi
579d926537 Get actual stored tab id correctly (#676) 2014-07-02 23:32:08 +09:00
Piro / YUKI Hiroshi
511a51dd7e Restore tab position for "Undo Close Tab" command correctly on Firefox 29 and newer versions (#676) 2014-07-02 23:02:53 +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
ca776a606f Get new position safely 2014-07-02 04:44:02 +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
Piro / YUKI Hiroshi
b386b85bd3 Make the meaning of "tabsToRestore" clear 2014-07-02 02:27:26 +09:00
YUKI Hiroshi
9e32fbe386 Update tabbar appearance correctly, after toolbar customiation (fix #728) 2014-05-19 19:25:38 +09:00
Piro / YUKI Hiroshi
8ba98a1059 Reduce use of mutation observers 2014-05-11 15:55:20 +09:00
Piro / YUKI Hiroshi
0df14f3989 Use "attributeFilter" for mutation observers 2014-05-11 15:41:43 +09:00
Piro / YUKI Hiroshi
5e777a6838 Don't hide the toolbox in the full screen mode, if "browser.fullscreen.autohide" is "false" 2014-05-11 04:51:07 +09:00
Infocatcher
aea4d110ec Fix typo: 'Transition' -> 'transition'
We still have 'MozTransition' in latest Firefox 32.0a1, so all should have working fine
2014-05-05 17:23:45 +04:00
Piro / YUKI Hiroshi
22a635e8d9 Allow "tabs in titlebar" if Tabs On Bottom addon is installed 2014-05-05 17:46:29 +09:00
YUKI Hiroshi
9436957452 Don't update the size of the floating tab bar by "resize" event from another floating box.
This the compatibility issue with Unified Sidebar.
See: https://github.com/piroor/unifiedsidebar/issues/3
2014-05-01 15:44:06 +09:00
Piro / YUKI Hiroshi
e8826a01bd Follow to changes introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=989984 2014-05-01 00:47:14 +09:00
YUKI Hiroshi
f2dc08bc43 Fix wrong version numbers of Firefox 2014-04-17 20:05:05 +09:00
YUKI "Piro" Hiroshi
a92de60fd8 Clear wrong relation of duplicated tabs (#605) 2014-04-16 18:58:30 +09:00
YUKI "Piro" Hiroshi
6681a7cd44 Revert "Ignore already cleared redirection table (#605)"
This reverts commit bf576cfb75.
2014-04-16 18:47:11 +09:00
YUKI "Piro" Hiroshi
bf576cfb75 Ignore already cleared redirection table (#605) 2014-04-16 18:45:53 +09:00
YUKI "Piro" Hiroshi
97a06e85db Don't clear tab relations for correctly duplicated tabs (#605) 2014-04-16 18:41:46 +09:00
YUKI "Piro" Hiroshi
ed6fafb2ec Cleanup needless (wrong) tab relations correctly (#605) 2014-04-16 18:23:59 +09:00
YUKI "Piro" Hiroshi
66734bbfaf Ignore already removed tabs 2014-04-16 17:43:03 +09:00
YUKI "Piro" Hiroshi
b94b562446 Specify given tab correctly 2014-04-16 17:42:31 +09:00
YUKI "Piro" Hiroshi
7976852515 Fix missing ")" 2014-04-16 17:39:47 +09:00
YUKI "Piro" Hiroshi
5fccd33645 Clear tab relations based on redirected IDs, if they never been "restored" (#605) 2014-04-16 17:34:39 +09:00
YUKI "Piro" Hiroshi
6e3d43d24b Add "with delay" suffix 2014-04-16 17:19:17 +09:00
YUKI Hiroshi
32feaa2d8c Fix missing message for closing multiple tabs correctly 2014-04-14 14:37:57 +09:00
YUKI Hiroshi
e7ac5542e5 Fix typo 2014-04-14 14:31:35 +09:00
YUKI Hiroshi
c2d37f721f Show a confirmation dialog for browser.tabs.warnOnClose correctly on Firefox 29 and later 2014-04-14 14:29:11 +09:00
Piro / YUKI Hiroshi
d72978a364 Fix memory leak
See: https://github.com/piroor/fxaddonlib-inherit/issues/1
2014-04-05 03:15:24 +09:00
YUKI Hiroshi
d29444fa07 Update library 2014-04-03 12:21:16 +09:00
YUKI Hiroshi
626649c00c Update library 2014-04-02 19:38:32 +09:00
YUKI Hiroshi
fd6c08937a Use Object.create to create subclasses 2014-04-02 19:25:51 +09:00
Piro / YUKI Hiroshi
84640a12ca Allow "tabs in titlebar" feature if Classic Theme Restorer is installed (#674)
https://addons.mozilla.org/firefox/addon/classicthemerestorer/
2014-04-02 03:43:42 +09:00
YUKI Hiroshi
482bab417b Use String#trim() instead of String#replace() 2014-03-31 15:10:51 +09:00
YUKI Hiroshi
a112fffe09 Change line breaks 2014-03-31 14:56:44 +09:00
YUKI Hiroshi
e7051b8856 Name to function 2014-03-31 14:54:56 +09:00
YUKI Hiroshi
29982f0522 Skip dirty hack on Firefox 29 and later 2014-03-31 14:54:39 +09:00
YUKI Hiroshi
0a0a4003b5 Restore tree structure on the startup correctly, with Firefox 29 and later 2014-03-31 14:54:14 +09:00
YUKI Hiroshi
f58cd7a994 Restore tree structure on the startup correctly, with Firefox 28 2014-03-31 14:52:44 +09:00
Piro / YUKI Hiroshi
30d4bc82e5 Reduce indent 2014-03-29 02:19:06 +09:00
Piro / YUKI Hiroshi
2c603b7558 Don't do forEach loop twice 2014-03-29 02:18:44 +09:00
YUKI Hiroshi
4f80fb7f97 Update copyright year 2014-03-24 18:29:46 +09:00
YUKI Hiroshi
852177b49e Merge branch 'master' of github.com:piroor/treestyletab 2014-03-24 18:29:32 +09:00
YUKI Hiroshi
7bdd9eed23 Open new tabs from "search by" in the context menu correctly, even if the selection includes line breaks or the selection is too long. (fix #671) 2014-03-24 18:27:45 +09:00
Piro / YUKI Hiroshi
84d4cb2002 Update copyright year 2014-03-12 22:27:35 +09:00
Piro / YUKI Hiroshi
5f3cddcf24 Fix syntax error 2014-03-12 22:27:20 +09:00
YUKI Hiroshi
5e7dc7684a Initialize CustomEvent correctly 2014-03-12 11:34:42 +09:00
Piro / YUKI Hiroshi
8b3792b312 Use CustomEvent instead of DataContainerEvent.
DataContainerEvent is going to be deprecated.
See: https://bugzilla.mozilla.org/show_bug.cgi?id=980134
2014-03-12 01:50:40 +09:00
YUKI Hiroshi
9a69cb5d1a Split prefs correctly 2014-03-11 11:51:32 +09:00
YUKI Hiroshi
9d1d964f74 Split preference fo different purpose 2014-03-11 11:09:28 +09:00
Piro / YUKI Hiroshi
67aa67a67f Detect number of "not restored yet" tabs on Firefox 29 and later correctly 2014-02-09 01:38:55 +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
Piro / YUKI Hiroshi
c68d85c617 Collapse the tab bar expanded by long-press of the Ctrl key automatically, when a new window is opened (#654) 2014-02-07 00:40:23 +09:00
YUKI Hiroshi
bf84e78673 Scroll to the current tab always, after the tab bar is shown (in auto-hide mode) (#653) 2014-02-06 18:53:58 +09:00
YUKI Hiroshi
617771c1c1 Restore scroll position of the tab bar in "auto hide" mode (#653) 2014-02-06 17:49:47 +09:00
YUKI Hiroshi
65f1c79acc Don't set negative margin to the navigator toolbox in the fullscreen mode, on OS X Lion (#645) 2014-02-03 18:05:54 +09:00
YUKI Hiroshi
439697f462 Don't reset scroll position while the tab bar is invisible (#646) 2014-02-03 17:14:56 +09:00
YUKI Hiroshi
b3382623dd Detect visibility of the tab bar more robustly 2014-02-03 17:14:38 +09:00
YUKI Hiroshi
081c0dd34b Disable "draw in titlebar" feature for non-popup windows 2014-01-31 22:02:33 +09:00
YUKI Hiroshi
c91ffcac54 Remove codes for outdated versions of Firefox 2014-01-30 12:36:36 +09:00
Piro / YUKI Hiroshi
658a48a4f8 Open bookmark folder as a tree correctly, even if the user don't want to open a dummy grouping tab. 2014-01-29 02:27:35 +09:00
Piro / YUKI Hiroshi
c82e735bb0 Better compatibility with [Tab Control](https://addons.mozilla.org/firefox/addon/tab-control) #636 2014-01-29 01:53:58 +09:00
Piro / YUKI Hiroshi
7f3fdb1ab1 Remove codes for "replace current one tab".
Because it was removed on Firefox 8. These codes are already expired.
2014-01-29 01:35:13 +09:00
Piro / YUKI Hiroshi
8596d9dec1 Fix broken show/hide API #392 2014-01-25 00:00:44 +09:00
Piro / YUKI Hiroshi
9494634235 Better compatibility with Nav Bar on Title Bar addon #620
https://addons.mozilla.org/firefox/addon/nav-bar-on-title-bar/
2013-12-06 18:10:54 +09:00
Piro / YUKI Hiroshi
6e039a7a99 Remove code to call obsolete method 2013-12-06 18:04:49 +09:00
Piro / YUKI Hiroshi
70662a4593 Fix syntax error 2013-12-01 01:17:34 +09:00
Piro / YUKI Hiroshi
951816d187 Don't call onSizemodeChange on the initialization process, if it is not fullscreen 2013-12-01 01:15:34 +09:00
Piro / YUKI Hiroshi
5587ca68c6 Handle sizemode change by MutationObserver 2013-12-01 01:09:05 +09:00
Piro / YUKI Hiroshi
fcd1b04aa2 Remove legacy codes before "beforecustomization" and "aftercustomization" are landed 2013-11-29 01:43:43 +09:00
Piro / YUKI Hiroshi
a431551eed Remove codes for "tabs in titlebar" #611 2013-11-29 01:22:18 +09:00
Piro / YUKI Hiroshi
fa7ae93db0 Disallow "tabs in titlebar" when the tab bar is not shown on the top (for Australis) 2013-11-28 05:02:39 +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
c15d267a48 Turn the tab bar visible when it is resizing and going to be expanded from collapsed by dragging of the splitter 2013-11-28 03:43:21 +09:00
Piro / YUKI Hiroshi
daa613b0da Don't listen needless TabMove events 2013-11-21 02:48:55 +09:00
Piro / YUKI Hiroshi
6fb5b1a0e3 Activate "tabs in titlebar" mode only when the menubar is hidden 2013-11-21 00:01:39 +09:00
Piro / YUKI Hiroshi
0f82638570 Draw navigation bar in the titlebar for Australis on Windows 2013-11-20 23:38:12 +09:00
Piro / YUKI Hiroshi
1f0f93e9eb Add comment for compatibility with Australis 2013-11-19 23:26:23 +09:00
Piro / YUKI Hiroshi
a5b48d3306 Merge branch 'master' of github.com:piroor/treestyletab 2013-11-19 23:25:53 +09:00
Piro / YUKI Hiroshi
7bae0f98f2 Fix broken tab contents order with Australis 2013-11-19 23:25:30 +09:00
Piro / YUKI Hiroshi
1b4eb1cd8a Disable "TabsInTitlebar" if tabs are not on the top 2013-11-19 23:23:25 +09:00
YUKI Hiroshi
1322154117 Use single quotation 2013-11-19 19:13:38 +09:00
Infocatcher
ff9023012f Correctly update "list all tabs" menu if there is pinned tabs + simplify 2013-11-18 12:15:14 +04:00
Piro / YUKI Hiroshi
8b77d49cca Fix path to AeroPeek module 2013-11-13 02:19:24 +09:00
Piro / YUKI Hiroshi
56d8b32ab7 Avoid error for undefined symbol "AeroPeek" 2013-11-13 02:18:27 +09:00
Piro / YUKI Hiroshi
2bfa8d7f4a Revert "Use SessionStore.jsm only."
This reverts commit 97637256a8.
This fixes a breakage of session restoration behaviors. The public symbol "SessionStore" doesn't have "TabRestoreStates", it is not exported.
2013-11-13 02:15:55 +09:00
Piro / YUKI Hiroshi
765b0d2e9f Report and ignore error from changes of Scriptish_openInTab 2013-11-10 14:01:06 +09:00
Piro / YUKI Hiroshi
6b01e0f2b9 Show the tab bar again correctly when I click the grippy in the splitter (#593) 2013-11-10 05:24:36 +09:00
Piro / YUKI Hiroshi
461a8aca98 Update credit 2013-11-10 04:28:07 +09:00
Piro / YUKI Hiroshi
6678d4b697 Call original "stop" method with all given arguments correctly 2013-11-10 04:16:33 +09:00
Piro / YUKI Hiroshi
a0b26441bf Fix breakage of *Now APIs 2013-11-10 04:16:29 +09:00
Piro / YUKI Hiroshi
5676165ebe Fix breakage of hooked tabModule.Scriptish_openInTab 2013-11-10 04:16:21 +09:00
Tetsuharu OHZEKI
b779d9306a Remove needless access to 'arguments'. 2013-11-10 04:16:14 +09:00
Tetsuharu OHZEKI
ee1eec680d Use ES6 Rest parameters. 2013-11-10 04:15:23 +09:00
Piro / YUKI Hiroshi
a13cbb754f Update library 2013-11-07 21:16:50 +09:00
Tetsuharu OHZEKI
97637256a8 Use SessionStore.jsm only. 2013-11-06 22:46:25 +09:00
Tetsuharu OHZEKI
5991114c47 Use Services.focus. 2013-11-06 22:11:15 +09:00
YUKI Hiroshi
e7637b55dc Merge branch 'timer' of git://github.com/saneyuki/treestyletab
Conflicts:
	install.rdf
2013-11-05 10:56:05 +09:00
Tetsuharu OHZEKI
8df4d85c95 Remove jstimer.jsm. 2013-11-04 00:49:04 +09:00
Tetsuharu OHZEKI
4183ced2d8 Remove using jstimer from animationManager.js. 2013-11-04 00:48:36 +09:00
Tetsuharu OHZEKI
b7ee2cf847 Use Timer.jsm in module/base.js 2013-11-04 00:43:52 +09:00
Piro / YUKI Hiroshi
78e4ea5526 Don't cancel the timer to hide (or collapse) the tab bar after a tab is opened or closed (#581, regression) 2013-10-30 04:30:08 +09:00
Piro / YUKI Hiroshi
2964e64df5 Better compatibility with someone who change visibility of the tab bar.
ex. Hide Tab Bar With One Tab ( https://addons.mozilla.org/firefox/addon/hide-tab-bar-with-one-tab/ ), Tab Mix Plus, and Pale Moon.
2013-10-30 04:20:50 +09:00
Piro / YUKI Hiroshi
0c6acbce7d Support "auto hide tab bar" feature provided by Tab Mix Plus.
This commit is related to #574 and #557.
2013-10-30 04:11:16 +09:00
Piro / YUKI Hiroshi
d17c117804 Prevent infinity loop around show/hide of tab bar related elements. (#574)
With browser.tabs.autoHide=true, some environments (ex. Pale Moon) fall into infinity loop. To avoid this problem, I have to ignore changing visibility around tab bar elements controlled by TST itself.
2013-10-30 03:36:31 +09:00
YUKI Hiroshi
6756ec255a Don't define multiple constant property with same value 2013-10-24 10:16:53 +09:00
Piro / YUKI Hiroshi
13584c712a Hide (collapse) the tab bar when the floating tab bar is going to be updated.
By this change, the size of the shrunken tab bar will saved and restored correctly. (#575)
2013-10-23 02:42:22 +09:00
Piro / YUKI Hiroshi
f7e172172b Expand the shrunken tab bar immediately when the mouse pointer moves onto the tab bar, if the size of teh tab bar is fixed. 2013-10-23 01:41:26 +09:00
Piro / YUKI Hiroshi
9f721f5be2 Re-show the tab bar correctly after exitting DOM fullscreen mode by F11 (#576) 2013-10-23 01:32:54 +09:00
YUKI "Piro" Hiroshi
aeaabeb526 Merge pull request #571 from Infocatcher/fix_fullscreen
Handle changes of "moz-collapsed" attribute to correctly update after exiting from full screen mode
2013-10-08 10:44:53 -07:00
Infocatcher
77542aabf5 Handle changes of "moz-collapsed" attribute to correctly update after exiting from full screen mode
(#546)
2013-10-08 21:40:16 +04:00
Piro / YUKI Hiroshi
a234135786 Remove ruin for compatibility with Tab Mix Plus's "hide the tab bar when there is only one tab" feature 2013-10-09 02:38:47 +09:00
Piro / YUKI Hiroshi
4004ec6f64 Update floating tab bar when UI element is inserted/removed from the browser box (#546) 2013-10-09 01:30:52 +09:00
Piro / YUKI Hiroshi
d2ff4f545e Show the full tooltip near the original tooltip correctly, even if there are multiple screens. (#302) 2013-10-09 01:09:01 +09:00
Piro / YUKI Hiroshi
e58a7b9987 Don't shrink/hide the tab bar for keyboard shortcuts Ctrl-T, Ctrl-R, etc. 2013-10-09 00:13:29 +09:00
Piro / YUKI Hiroshi
a9c59cc286 Don't focus to the tab which is going to be removed.
This fixes #569. In the previous revision, onTabClose method tried to focus to the first child even if it was going to be closed as a member of closing tree. Then TabSelect event was unexpectedly fired, TabWindow.prototype.handleEven (defined in resource:///modules/WindowsPreviewPerTab.jsm) raised an error, and blocked all following event handlers for TabSelect event. As the result, cached tabs list were not cleared and Ctrl-Tab feature was killed.
2013-10-08 02:47:53 +09:00
YUKI Hiroshi
163df63f04 Hide vertical tab bar in the DOM-fullscreen mode (ex. YouTube) (#564) 2013-10-01 10:20:02 +09:00
YUKI Hiroshi
f42084c29d Disable detection for Tab Mix Plus because it is buggy for me. 2013-09-18 18:02:37 +09:00
YUKI Hiroshi
5d54fd5a38 Fix indent 2013-09-18 17:43:41 +09:00
YUKI Hiroshi
8bce1239b3 Detect mode of Tab Mix Plus correctly 2013-09-18 17:43:18 +09:00
YUKI Hiroshi
4bcca0d787 Support "hide tab bar only when one tab" again for Tab Mix Plus (#557) 2013-09-18 17:34:21 +09:00
YUKI Hiroshi
a641d748c7 Allow users to create new subtree from partially selected tree of tabs (#553) 2013-09-18 12:10:15 +09:00
YUKI Hiroshi
f0e71741a1 Break lines after condition block of "if" statements 2013-09-17 18:17:20 +09:00
YUKI Hiroshi
47774acf54 Keep tab bar shown (expanded) if one of triggers is still there. (#552)
The tab bar can be shown by three reasons: mouseover, keyboard shortcut,
and feedback for new tabs. However, sometimes two or more triggers can
be fired in a same time. Now TST keeps the tab bar showing (expanded)
for combinated cases, like: shown by the keyboard shortcut, the mouse
goes onto the tab bar, and it leaves from the tab bar.
2013-09-17 16:22:29 +09:00
YUKI Hiroshi
1f5188defd Add wanabe to the list of contributors in license blocks 2013-09-13 19:58:52 +09:00
YUKI Hiroshi
443356caa1 Observe changes of attributes of the parent box itself correctly 2013-09-13 19:44:48 +09:00
YUKI Hiroshi
bbe6b79024 Update tab bar position for "disablechrome" attribute of the root element 2013-09-13 19:37:21 +09:00
wanabe
47ac7924e1 Improve compatibility with "How Many Times Can I Back?" (#397)
use commonAncestorContainer instead of getCommonAncestor()
2013-09-12 14:54:38 +09:00
wanabe
1a83376034 Improved compatibility with "How Many Times Can I Back?" (#397)
"getCommonAncestor" method is not available without jQuery
2013-09-12 12:36:00 +09:00
Piro / YUKI Hiroshi
6bce4e5e19 Inherit width, height, and others via xbl:inherits (#550)
The inner box of the tab bar should inherit width, height, and other attributes given via setTabbrowserAttribute(), from the parent element. However, if the binding is re-assigned again and again, then it can happen infinitely loop when the inheritance is done by xbl:constructor.
2013-08-28 02:25:49 +09:00
YUKI Hiroshi
a60af4b0c7 Fix error on the initialization (#543)
It is caused by the preference "browser.tabs.autoHide" which is not defined in the default branch.
2013-08-23 17:09:03 +09:00
YUKI Hiroshi
e80560034b Use "&" instead of ";" as the separator of URL parameters 2013-08-21 17:36:12 +09:00
YUKI Hiroshi
23b1a043ef Add customizability for newly opened temporary groups (#537) 2013-08-21 17:34:07 +09:00
YUKI Hiroshi
c9b3bcd5d0 Add "temporary group" checkbox 2013-08-21 13:51:03 +09:00
YUKI Hiroshi
79555c9b3d Update UI for title of group tabs by setter 2013-08-21 13:49:31 +09:00
YUKI Hiroshi
c22c03186f Open temporary group tabs with "temporary=true" parameter 2013-08-21 13:35:26 +09:00
YUKI Hiroshi
4fe157dec2 Detect temporary group tabs ignoring session history 2013-08-21 13:08:56 +09:00
YUKI Hiroshi
2cd526253e Detect temporary group tab correctly 2013-08-21 13:05:18 +09:00
YUKI Hiroshi
1170b1075a Simulate location.search because it is not available on about: URIs 2013-08-21 13:00:38 +09:00
YUKI Hiroshi
163b14646d Close needless group tabs automatically if they are temporary 2013-08-21 12:53:36 +09:00
YUKI Hiroshi
570502a6fb Fix typo
ues =>
yes
^
2013-08-21 12:52:40 +09:00
YUKI Hiroshi
05f837d0c6 Update URI by setter 2013-08-21 12:46:17 +09:00
YUKI Hiroshi
ee25050cf1 Support multiple parameters for group tabs, like "title=(title);temporary=(boolean)" 2013-08-21 12:39:58 +09:00
YUKI Hiroshi
158e41caf1 Support "?" in the title of group tabs 2013-08-21 12:28:47 +09:00
YUKI Hiroshi
db4cd9b6f1 Revert "Don't close the window with the last group tab, if the last child of the group is closed. (#537)"
This reverts commit 63a72c9e62.
2013-08-21 12:20:12 +09:00
Piro / YUKI Hiroshi
2b103ee178 Show/hide tab bar correctly after the grippy is clicked (#538) 2013-08-21 03:50:03 +09:00
Piro / YUKI Hiroshi
63a72c9e62 Don't close the window with the last group tab, if the last child of the group is closed. (#537)
This behaviour can be disabled (and get the old behaviour) by setting the preference "extensions.treestyletab.autoRemoveNeedlessGroupTab.lastTab" to "true".
2013-08-21 03:42:50 +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
637a4fd9bc Don't hide the tab bar even if there is only one tab, on Firefox 23 and later (#541)
Because the feature is removed on Firefox 23.
https://bugzilla.mozilla.org/show_bug.cgi?id=855370
However, the addon "Hide Tab Bar With One Tab" still provides it.
https://addons.mozilla.org/firefox/addon/hide-tab-bar-with-one-tab/
So, I decided to activate the behavior only on old Firefox or the environment which has the addon.
2013-08-21 01:09:03 +09:00
Piro / YUKI Hiroshi
481bc1c303 Initialize "Close Tabs to the Right" menuitem even if Multiple Tab Handler is installed.
ddbd41163b (commitcomment-3731331)
2013-07-28 01:57:50 +09:00
Piro / YUKI Hiroshi
fd071ba859 Use vertical tab bar specific accesskey for "Close Tabs to Bottom" 2013-07-28 01:53:46 +09:00
Piro / YUKI Hiroshi
e35f7f04d3 Restore tree structure for "undo close tab" feature #525
It was a regression on 0.14.2013052901.
2013-07-27 13:56:24 +09:00
Piro / YUKI Hiroshi
a416b179a9 Print more information in the debugging mode 2013-07-27 13:55:20 +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
54143f450d Don't shrink tab bar when user selects background tabs #526 2013-07-27 03:04:04 +09:00
Piro / YUKI Hiroshi
5b30204112 Output more messages for debugging 2013-07-27 02:03:44 +09:00
Piro / YUKI Hiroshi
a18af8638f Deactivate debugging flag 2013-07-27 01:35:22 +09:00
Piro / YUKI Hiroshi
ddbd41163b Update label of "Close Tabs to the Right" menuitem to "Close Tabs to the Bottom" in the vertical tab bar #529 2013-07-27 00:51:38 +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
YUKI Hiroshi
c03ad9eaff Detect new tabs opened from content scripts correctly (#517, #510) 2013-07-02 19:47:41 +09:00
Infocatcher
b2365f075d Correctly detect group tabs
Testcase: about:blank?about:treestyletab-group
2013-06-13 10:02:22 +04:00
Piro / YUKI Hiroshi
20b43cbbb0 Fix wrong path 2013-05-29 23:06:11 +09:00
Piro / YUKI Hiroshi
0ec947b4de Update library 2013-05-29 23:04:40 +09:00
Piro / YUKI Hiroshi
51f0dcb960 Fix syntax error 2013-05-28 23:26:30 +09:00
YUKI Hiroshi
a17941500d Detect "to be restored" tab correctly 2013-05-28 16:14:31 +09:00
YUKI Hiroshi
8b8b048138 Add notation for an obsolete method 2013-05-28 16:04:58 +09:00
YUKI Hiroshi
096830cf22 Don't use __SS_restoreState (See https://bugzilla.mozilla.org/show_bug.cgi?id=867142 ) 2013-05-28 15:43:37 +09:00
Piro / YUKI Hiroshi
2f2004b8e0 Don't open new window/tabs as children of the current tab, when the opener is not a subframe of the current tab (#510) 2013-05-11 01:55:41 +09:00
Piro / YUKI Hiroshi
43e1813650 Collect strongly related codes 2013-05-06 06:36:17 +09:00
Piro / YUKI Hiroshi
eedc895e22 _reserveCloseNeedlessGroupTabParent() should receive the closing tab instead of the parent tab.
Because another similar method _reserveCloseNeedlessGroupTabSibling() receives the closing tab.
2013-05-06 05:15:55 +09:00
Piro / YUKI Hiroshi
895b038fe7 Flatten codes 2013-05-06 04:52:55 +09:00
Piro / YUKI Hiroshi
1f6333c22c Split a large method onTabClose() to small methods 2013-05-06 02:01:36 +09:00