Commit Graph

185 Commits

Author SHA1 Message Date
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
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
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
YUKI Hiroshi
97a87d0b1a Remove obsolete "stopRendering" module 2014-11-11 18:58:31 +09:00
Piro / YUKI Hiroshi
fe26d207ca Migrate from JSDeferred to ES6 Promise (Promise.jsm) 2014-10-22 02:28:19 +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
db487f32bb Detect DOM instances by constructor function instead of XPCOM interface 2014-10-01 01:32:27 +09:00
YUKI Hiroshi
09f43c8f84 Use LF instead of CRLF 2014-09-30 20:09:27 +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
John Schoenick
0cc0714723 Fix click hook for nesting new tabs in e10s mode 2014-08-27 16:17:00 -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
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
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
f2dc08bc43 Fix wrong version numbers of Firefox 2014-04-17 20:05:05 +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
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
0a0a4003b5 Restore tree structure on the startup correctly, with Firefox 29 and later 2014-03-31 14:54:14 +09:00
YUKI Hiroshi
4f80fb7f97 Update copyright year 2014-03-24 18:29:46 +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
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
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
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
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
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
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
1b4eb1cd8a Disable "TabsInTitlebar" if tabs are not on the top 2013-11-19 23:23:25 +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
461a8aca98 Update credit 2013-11-10 04:28:07 +09:00
Tetsuharu OHZEKI
ee1eec680d Use ES6 Rest parameters. 2013-11-10 04:15:23 +09:00
Tetsuharu OHZEKI
5991114c47 Use Services.focus. 2013-11-06 22:11:15 +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
e58a7b9987 Don't shrink/hide the tab bar for keyboard shortcuts Ctrl-T, Ctrl-R, etc. 2013-10-09 00:13:29 +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
bbe6b79024 Update tab bar position for "disablechrome" attribute of the root element 2013-09-13 19:37:21 +09:00
YUKI Hiroshi
23b1a043ef Add customizability for newly opened temporary groups (#537) 2013-08-21 17:34:07 +09:00
YUKI Hiroshi
c22c03186f Open temporary group tabs with "temporary=true" parameter 2013-08-21 13:35:26 +09:00
YUKI Hiroshi
c03ad9eaff Detect new tabs opened from content scripts correctly (#517, #510) 2013-07-02 19:47:41 +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
cc72b2ebfc Rename generic method to open new related tab with specified behavior
handleNewTabCommand =>
readyToOpenRelatedTabAs
2013-03-06 02:54:04 +09:00
Piro / YUKI Hiroshi
f8b994eb26 Define handleNewTabFromCurrent and handleNewTabCommand as methods of both TSTWindow and TSTBrowser (for future changes to open related tab from the current tab from TSTBrowser) 2013-03-06 02:40:18 +09:00
Piro / YUKI Hiroshi
5954e76c02 Add new secret option "extensions.treestyletab.autoAttach.fromCurrent" to control new tab position from the current tab (#452) 2013-03-06 02:37:21 +09:00
Piro / YUKI Hiroshi
7e03fef929 Observe changes of UI shown/hidden not only the browser bottom box but also the toolbox (for #470) 2013-03-02 22:12:28 +09:00
Piro / YUKI Hiroshi
adbebdef7e Reduce use of arguments.callee because it doesn't work on the strict mode 2013-03-02 21:29:41 +09:00
Piro / YUKI Hiroshi
a1dd914a09 TreeStyleTabBase should not inherit "prefs" (part 2) 2013-01-06 11:56:20 +09:00
Piro / YUKI Hiroshi
72d38659d8 TreeStyleTabBase should not inherit "prefs" 2013-01-06 11:47:50 +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
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
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
Piro / YUKI Hiroshi
450fa34790 Simplify codes to load modules lazily 2012-11-11 22:48:42 +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
saneyuki_s
3e658380c9 Move some pref methods from TSTBase to TSTUtils. 2012-10-19 23:20:08 +09:00
Piro / YUKI Hiroshi
9182259ab5 Update credit 2012-10-14 03:31:06 +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
saneyuki_s
a18738be8f Remove TreeStyleTabUtils.PromptService. 2012-09-23 18:39:34 +09:00
Piro / YUKI Hiroshi
d2e9f51f8f Fix broken XPath expression 2012-09-23 16:08:08 +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
3941b88b1f Remove TreeStyleTabUtils.ObserverService. 2012-09-18 00:31:48 +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
Infocatcher
ddeddd38ee Reset tab bar height only using left double click 2012-08-28 17:21:46 +04:00
Infocatcher
76defb974a Convert from Shift-JIS to UTF-8 2012-08-28 16:53:25 +04: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
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
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
c844906cb1 handle errors in deferred tasks 2012-02-07 02:13:46 +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
59444c68a6 use Iterator instead of forEach (for performance optimization) 2012-02-05 03:15:38 +09:00