Commit Graph

3753 Commits

Author SHA1 Message Date
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
YUKI Hiroshi
35927b1148 Shorten 2015-11-02 10:04:58 +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
Piro / YUKI Hiroshi
b11a175cbf Suppress error like TypeError: aEvent.target.getSelection is not a function 2015-10-31 00:11:16 +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
YUKI Hiroshi
baf96c545b Remove garbage 2015-10-29 11:01:55 +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
Piro / YUKI Hiroshi
cfca590bc3 Fix wrong attribute name 2015-10-27 00:11:37 +09:00
YUKI Hiroshi
f0f3076629 Attach tabs from GM_openInTab after all tabs are opened.
Because Greasemonkey moves opened tabs to the bottom of the tab bar always, TST detaches the new child tab unexpectedly.
2015-10-26 19:05:49 +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
4509c76e90 Rewrite hack for Greasemonkey (based on GM 3.5) 2015-10-26 17:47:05 +09:00
YUKI Hiroshi
75f761d291 Fix path to Greasemonkey's internal modules (for GM 3.5) 2015-10-26 16:53:03 +09:00
YUKI Hiroshi
5a17a36773 Fix path to Greasemonkey's internal modules (tested on GM 3.5) 2015-10-26 16:50:28 +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
95100cf52c Make matching rule more lazy 2015-10-26 16:40:51 +09:00
YUKI Hiroshi
102ffdc44e Allow to use GM_openInTabs 2015-10-26 16:40:40 +09:00
YUKI Hiroshi
41191843a2 Use more meaningful name 2015-10-26 16:40:13 +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
YUKI Hiroshi
5bdda35fe6 Use latest buildscript 2015-10-26 15:57:37 +09:00
YUKI Hiroshi
bad58e2a98 Render inserted items as links 2015-10-26 15:56:58 +09:00
YUKI Hiroshi
e2aaae03ae Re-specify positioning of the overlay icon in a pinned tab, based on the "em" scale 2015-10-26 15:12:18 +09:00
YUKI Hiroshi
27d9164d9c Don't override special style rules for the overlay icon in a pinned tab 2015-10-26 14:23:05 +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
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
Piro / YUKI Hiroshi
9985b4a21e Fix typo 2015-10-06 00:55:29 +09:00
Piro / YUKI Hiroshi
d7066482d2 Add news topics 2015-10-05 23:46:29 +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
fdffdacd36 Support tab bar outside of #TabsToolbar 2015-10-05 17:07:08 +09:00
YUKI Hiroshi
5f022d3067 Show the icon of the "all tabs" button in the tab bar, on Linux 2015-10-05 17:06:27 +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