Commit Graph

81 Commits

Author SHA1 Message Date
YUKI Hiroshi
f6cf37c90c Remove obsolete code for too old Firefox.
SidebarUI is already available at Firefox 38.
2015-11-05 18:19:47 +09:00
YUKI Hiroshi
8fb3ce884e Update floating tab bar if the sidebar width is changed 2015-11-05 18:14:17 +09:00
YUKI Hiroshi
1f4458cb3a Fix indent 2015-11-05 18:11:56 +09:00
YUKI Hiroshi
8bfe8dfc2e Reposition the floating tab bar only when the sidebar is actually opened or closed 2015-11-05 18:11:28 +09:00
YUKI Hiroshi
b417c45425 Detect tab from drag events more correctly 2015-11-04 11:58:44 +09:00
YUKI Hiroshi
0fbea3cfbf Fix indent 2015-11-04 11:44:53 +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
Piro / YUKI Hiroshi
ff2d3caed5 Don't redefine gBrowserInit._delayedStartup() with eval() to avoid errors from mismatched variable scopes.
I don't know why but redefined function with eval() has a variable scope different from its original one, and fails to access gSessionHistoryObserver defined in Firefox's script with "const" statement. So I gave up to use eval() hack.
2015-10-10 19:19:11 +09:00
YUKI Hiroshi
064578b3e0 Open child tab correctly with middle click on "view image" in the context menu 2015-09-03 16:24:28 +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
Xidorn Quan
075487b836 Fix sidebar in fullscreen mode for Firefox 40+.
This is a change from bug 947854 where FullScreen.mouseoverToggle is
replaced with FullScreen.{show,hide}NavToolbox. This fix detects this
and do patching accordingly.
2015-08-18 12:10:08 +10:00
Piro / YUKI Hiroshi
9f59a6ebe7 Don't do smooth scroll if it is expressly forbidden 2015-03-18 02:33:41 +09:00
YUKI Hiroshi
283a79e56c Always override ensureElementIsVisible() if animation effect is active 2015-03-17 17:59:20 +09:00
YUKI Hiroshi
784f3d875a Fix indent 2015-03-17 17:52:26 +09:00
YUKI Hiroshi
f639cf2145 Don't update ensureElementIsVisible() twice 2015-03-17 17:52:08 +09:00
YUKI Hiroshi
0d1973ced9 Update Firefox's ensureElementIsVisible() of the tab bar without eval() 2015-03-17 17:48:36 +09:00
Piro / YUKI Hiroshi
f5682bef76 Patch for gBrowserInit._delayedStartup more surely 2015-03-05 23:35:09 +09:00
Piro / YUKI Hiroshi
1cc22a7460 Open child tabs correctly from the search bar on Firefox 36 and later 2015-03-04 02:39:05 +09:00
YUKI Hiroshi
9463bb8062 Use rest parameters instead of "arguments".
Because "arguments"-specific features are not used here.
2015-02-27 10:57:43 +09:00
YUKI Hiroshi
5c323d143b Update appearance after the sidebar is shown/hidden at Firefxo 39 and later #849 2015-02-27 10:49:39 +09:00
YUKI Hiroshi
42c24c1628 Patch to toggleSidebar only when possible.
The function will be removed in the future by changes introduced at https://bugzilla.mozilla.org/show_bug.cgi?id=1123517
2015-02-27 10:24:18 +09:00
Piro / YUKI Hiroshi
2ea151b856 Remove deprecated JS1.7's let blocks 2015-02-27 00:55:36 +09:00
LordJZ
cdc37508f6 Update click hook for Bug 1108555 changes
Commit that broke compatibility:
3db60dbec7 (diff-1)

Should be backwards compatible.
2014-12-25 01:10:20 +03:00
YUKI Hiroshi
ddb87ab83a Follow to changes introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=1058116 2014-11-19 12:25:22 +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
Piro / YUKI Hiroshi
2e6c885ba3 Restore closed tabs at once correctly, even if e10s is activated. 2014-11-12 03:58:09 +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
YUKI Hiroshi
eb42092e49 Use DOM constructor instead of XPCOM interface to detect DOM element 2014-09-30 21:19:33 +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
John Schoenick
0cc0714723 Fix click hook for nesting new tabs in e10s mode 2014-08-27 16:17:00 -07:00
John Schoenick
8fa1d76281 Fix click->open link handler for bug 1050447/Fx 34 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
a1ced64bfb Don't reassign a global variable. (fix #741)
With the preference "dom.compartment_per_addon"="true", updated gBrowserInit._delayedStartup cannot reassign a global variable defined by Firefox itself.
Accessing it as a property of the global object is not forbidden for now.
2014-06-30 01:48:51 +09:00
YUKI Hiroshi
10c32959b2 Fix broken ternary operation 2014-05-14 11:57:36 +09:00
Piro / YUKI Hiroshi
5d53c82533 Improve compatibility with TabsInTitlebar module 2014-05-05 17:37:43 +09:00
Piro / YUKI Hiroshi
392107c238 Override the function handleLinkClick on DOMContentLoaded event,before NoScript replaces the function (#687) 2014-04-29 17:50:12 +09:00
YUKI Hiroshi
8db6b008ae Follow to changes introduced by the bug 971630 (fix #685)
Changes introduced by this diff break TST.
http://hg.mozilla.org/mozilla-central/diff/6aef8ef7d775/browser/base/content/tabbrowser.xml
2014-04-17 20:05:05 +09:00
YUKI Hiroshi
1c7dc63075 Fix typo (#683)
"Add Dictionaries" context menu item didn't work.
2014-04-10 13:18:44 +09:00
YUKI Hiroshi
482bab417b Use String#trim() instead of String#replace() 2014-03-31 15:10:51 +09:00
Piro / YUKI Hiroshi
2f51f15265 Open tabs as children, from the "search by" in the context menu. (#655)
It worked in old versions, but killed by changes of Firefox itself.
2014-02-08 17:56:43 +09:00
YUKI Hiroshi
c91ffcac54 Remove codes for outdated versions of Firefox 2014-01-30 12:36:36 +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
dce660e49d Show fullscreen window control (closebox, etc.) in the navigation bar when TST is activated. #613 2013-11-29 01:18:37 +09:00
YUKI Hiroshi
dd1a76fd64 Don't hide browser UI for builtin "about:*" pages with the vertical tab bar 2013-09-13 19:33:26 +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
7985a98620 Move all tabs in the dragged tree to a newly opened window correctly on Firefox 19 and later (#472) 2013-03-06 00:58:51 +09:00
Piro / YUKI Hiroshi
251674258d Move tree forward correctly by gBrowser.moveTabForward() 2013-01-04 03:56:47 +09:00
Piro / YUKI Hiroshi
318ad0ee52 Update hacks about moveTabForward/moveTabBackward for Firefox 20 2013-01-04 02:03:01 +09:00