Commit Graph

1963 Commits

Author SHA1 Message Date
YUKI Hiroshi
7831a6b6cc Remove codes for old Firefox 2015-08-28 18:26:30 +09:00
YUKI Hiroshi
e1198f1ef3 Remove debug print 2015-08-28 18:23:08 +09:00
YUKI Hiroshi
e2b143b372 Fix indent 2015-08-28 18:22:44 +09:00
YUKI Hiroshi
01dab35627 Open new tabs from the about:sync-tabs page as children correctly on lately Firefox 2015-08-28 18:22:19 +09:00
YUKI Hiroshi
bea74f32ba Call renamed methods correctly 2015-08-28 17:39:58 +09:00
YUKI Hiroshi
15666abfcb Call renamed methods correctly 2015-08-28 17:39:04 +09:00
Piro / YUKI Hiroshi
5380304aa8 Simplify #887 2015-08-19 01:24:54 +09:00
Piro / YUKI Hiroshi
dd2f17dd53 Show/hide UI to manage parent tab correctly on Firefox 40 and later #887 2015-08-19 01:12:07 +09:00
Piro / YUKI Hiroshi
289057ce55 Fix indent #887 2015-08-19 01:03:01 +09:00
Piro / YUKI Hiroshi
4abc4413e9 Initialize "edit" UI of a bookmark correctly for Firefox 40 and later #887 2015-08-19 00:59:16 +09:00
Piro / YUKI Hiroshi
c3adaabacf Fix mismatched method call on quitEditMode #887 2015-08-19 00:27:45 +09:00
Piro / YUKI Hiroshi
80938e8858 Replace functions entirely instead of partial patching.
This should fix #887 partially. However, when I click the star button twice, there still be another error like:

~~~
treestyletab: doPatching: gEditItemOverlay._showHideRows is missing! utils.js:319:0
treestyletab: Failed to patch to gEditItemOverlay.initPanel: function initPanel(aInfo) {
    if (typeof(aInfo) != "object" || aInfo === null)
      throw new Error("aInfo must be an object.");

    // For sanity ensure that the implementer has uninited the panel before
    // trying to init it again, or we could end up leaking due to observers.
    if (this.initialized)
      this.uninitPanel(false);

    let { itemId, itemGuid, isItem,
          isURI, uri, title,
          isBookmark, bulkTagging, uris,
          visibleRows } = this._setPaneInfo(aInfo);

    let showOrCollapse =
      (rowId, isAppropriateForInput, nameInHiddenRows = null) => {
        let visible = isAppropriateForInput;
        if (visible && "hiddenRows" in aInfo && nameInHiddenRows)
          visible &= aInfo.hiddenRows.indexOf(nameInHiddenRows) == -1;
        if (visible)
          visibleRows.add(rowId);
        return !(this._element(rowId).collapsed = !visible);
      };

    if (showOrCollapse("nameRow", !bulkTagging, "name")) {
      this._initNamePicker();
      this._namePicker.readOnly = this.readOnly;
    }

    // In some cases we want to hide the location field, since it's not
    // human-readable, but we still want to initialize it.
    showOrCollapse("locationRow", isURI, "location");
    if (isURI) {
      this._initLocationField();
      this._locationField.readOnly = this.readOnly;
    }

    // hide the description field for
    if (showOrCollapse("descriptionRow", isItem && !this.readOnly,
                       "description")) {
      this._initDescriptionField();
      this._descriptionField.readOnly = this.readOnly;
    }

    if (showOrCollapse("keywordRow", isBookmark, "keyword")) {
      this._initKeywordField();
      this._keywordField.readOnly = this.readOnly;
    }

    // Collapse the tag selector if the item does not accept tags.
    if (showOrCollapse("tagsRow", isURI || bulkTagging, "tags"))
      this._initTagsField().catch(Components.utils.reportError);
    else if (!this._element("tagsSelectorRow").collapsed)
      this.toggleTagsSelector().catch(Components.utils.reportError);

    // Load in sidebar.
    if (showOrCollapse("loadInSidebarCheckbox", isBookmark, "loadInSidebar")) {
      this._initLoadInSidebar();
    }

    // Folder picker.
    // Technically we should check that the item is not moveable, but that's
    // not cheap (we don't always have the parent), and there's no use case for
    // this (it's only the Star UI that shows the folderPicker)
    if (showOrCollapse("folderRow", isItem, "folderPicker")) {
      let containerId = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
      this._initFolderMenuList(containerId);
    }

    // Selection count.
    if (showOrCollapse("selectionCount", bulkTagging)) {
      this._element("itemsCountText").value =
        PlacesUIUtils.getPluralString("detailsPane.itemsCountLabel",
                                      uris.length,
                                      [uris.length]);
    }

    // Observe changes.
    if (!this._observersAdded) {
      PlacesUtils.bookmarks.addObserver(this, false);
      window.addEventListener("unload", this, false);
      this._observersAdded = true;
    }
  }
~~~
2015-08-19 00:25:47 +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
3eaae4cbcf Unregister event listener for SSWindowStateBusy correctly 2015-06-11 03:08:54 +09:00
YUKI Hiroshi
94428a1b2d Fix typo: handle DOMContentLoaded events correctly 2015-05-11 18:48:27 +09:00
YUKI Hiroshi
a22337abde Scroll to opened tab group after expanding animation is finished 2015-03-19 11:46:48 +09:00
YUKI Hiroshi
a8d490f468 Scroll to pened tab group with delay to avoid canceling by other triggers 2015-03-19 11:24:41 +09:00
YUKI Hiroshi
2e484f9026 Don't scroll to group tabs opened in the background 2015-03-19 10:55:06 +09:00
YUKI Hiroshi
609400e19a Scroll to opened tab group even if TMP is not installed 2015-03-19 10:47:49 +09:00
YUKI Hiroshi
65007f64e6 Scroll to tabs opened from a bookmark folder 2015-03-19 10:25:25 +09: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
Piro / YUKI Hiroshi
c93270dff6 Better compatibility with Duplicate in Tab Context Menu addon #835
https://addons.mozilla.org/firefox/duplicate-in-tab-context-menu/
2015-03-02 01:53:24 +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
9e51001b51 Fix too deep indent 2015-02-27 00:56:15 +09:00
Piro / YUKI Hiroshi
2ea151b856 Remove deprecated JS1.7's let blocks 2015-02-27 00:55:36 +09:00
YUKI Hiroshi
c769438610 Update code for removed nsIPopupBoxObject interface.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=979835
2015-02-26 19:35:29 +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
6c709c6a61 Save chosen parent tab by bookmarks property dialog correctly 2014-11-13 02:25:05 +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
1e8bad6e2e Save changed "parent tab" setting in the bookmarks properties dialog correctly.
The feature was broken by patches introduced by the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=575955
2014-11-13 00:41:41 +09:00
YUKI Hiroshi
652b9e2303 Fix typo: missing "S" 2014-11-12 12:11:37 +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
97a87d0b1a Remove obsolete "stopRendering" module 2014-11-11 18:58:31 +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
02bcfe5d8b Handle mouse events for auto hide feature by a frame script, for e10s 2014-11-11 17:45:12 +09:00
YUKI Hiroshi
b871d1ab4e Fix broken drag and drop of bookmarks on Firefox 35 and later 2014-10-22 14:51:02 +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
2b4be0cdfc Update library 2014-09-30 21:11:12 +09:00
YUKI Hiroshi
09f43c8f84 Use LF instead of CRLF 2014-09-30 20:09:27 +09:00
YUKI Hiroshi
c595c8ba22 Restore tree structure with multiple trees from bookmarks correctly, even if the dummy tab is disabled. (#662) 2014-09-30 19:59:15 +09:00
YUKI Hiroshi
5e498bd0ac Use LF instead of CRLF 2014-09-30 19:48:58 +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
19d2ded9d1 Stringify saved value 2014-09-30 14:42:28 +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
275d0bb4db Add reason why we use white screen 2014-05-10 19:22:24 +09:00
Vlastimil Ovčáčík
2a865e5549 Fixes piroor/treestyletab/#710.
Changes background color of dummy almost transparent element spread over
Firefox content area from black to white. The near transparent element may
change website tone with inverse color. Therefore white dummy element will
affect only black websites since this commit.
2014-05-08 12:59:13 +02:00
Piro / YUKI Hiroshi
9cce7b81ca Open new tabs from Tile Tabs as next sibling tab 2014-05-06 00:53:15 +09:00
Piro / YUKI Hiroshi
dd45a2a080 Open new tab by Tile Tabs as a child of the current tab 2014-05-06 00:45:04 +09:00
Piro / YUKI Hiroshi
5d53c82533 Improve compatibility with TabsInTitlebar module 2014-05-05 17:37:43 +09:00
Piro / YUKI Hiroshi
cb33e92629 Hide pinned tabs completely on dom-fullscreen-mode (#692) 2014-05-01 01:03:26 +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
d72b5924e7 Override z-index of the #tabbrowser-tabs specified by Firefox itself (#686) 2014-04-23 12:14:30 +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
Piro / YUKI Hiroshi
45bc798e2a Fix syntax error 2014-04-03 00:29:16 +09:00
YUKI Hiroshi
5d5e77a110 Update library 2014-04-02 19:32:31 +09:00
YUKI Hiroshi
fd6c08937a Use Object.create to create subclasses 2014-04-02 19:25:51 +09:00
YUKI Hiroshi
482bab417b Use String#trim() instead of String#replace() 2014-03-31 15:10:51 +09:00
Piro / YUKI Hiroshi
35c5e99d30 Update library 2014-03-12 01:34:33 +09:00
YUKI Hiroshi
c05c58347b Remove needless blank line 2014-03-11 11:29:02 +09:00
YUKI Hiroshi
6c2ec01c51 Split checkbox for splitted two prefs 2014-03-11 11:21:59 +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
61a06e4a74 Apply TST's custom biding for the tab bar even if there is no "tabsontop=true" attribute.
An existing profile can have tabsontop=true attribute in the localstore.rdf but a new profile doesn't.
2014-01-30 02:19:59 +09:00
Piro / YUKI Hiroshi
728f16434a Fix indent 2014-01-29 02:29:49 +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
6ab9607264 Re-align 2014-01-29 02:04:24 +09:00
Piro / YUKI Hiroshi
412279af1a Remove obsolete code 2014-01-29 02:03:43 +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
5587ca68c6 Handle sizemode change by MutationObserver 2013-12-01 01:09:05 +09:00
Piro / YUKI Hiroshi
cb50e1cecf Open tabs from GM_openInTab as children of the tab #614 2013-11-29 02:35:58 +09:00
Piro / YUKI Hiroshi
e66b5949bc Override binding of the tab bar and other toolbars correctly on both Australis and non-Australis environments 2013-11-29 02:02:53 +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
Piro / YUKI Hiroshi
8a4a8a996f Apply TST's binding to the tabs toolbar even if lightweight theme is applied 2013-11-29 01:01:54 +09:00
Piro / YUKI Hiroshi
02afd56637 Open search results from Context Search as a child tab of the current tab (#616)
http://www.cusser.net/extensions/contextsearch/
2013-11-28 03:53:22 +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
10817a04d0 Bump revision of tabsDragUtils.js
8467790918
2013-11-06 23:07:01 +09:00
Tetsuharu OHZEKI
97637256a8 Use SessionStore.jsm only. 2013-11-06 22:46:25 +09:00
Piro / YUKI Hiroshi
037ed95977 Process iterator by a common utility 2013-10-30 02:11:31 +09:00
Piro / YUKI Hiroshi
c10e126000 Build menulist items for sibling bookmarks in the folder progressively.
I think this can become a workaround for #398.
2013-10-30 01:55:46 +09:00
Piro / YUKI Hiroshi
63114ca99f Don't activate UI to manage tree relations for bookmarks in the "unsorted bookmarks" folder.
We often store very large number of items into the folder, however we'll never open them as a group of bookmarks via middle click on the folder. On the other hand, if there are too many sibling bookmarks, TST can freeze to initialize the list of siblings. So I decided to disable the UI for bookmarks in the "unsorted bookmarks" folder. This decision is related to the issue #398.
2013-10-30 01:40:20 +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
dd1a76fd64 Don't hide browser UI for builtin "about:*" pages with the vertical tab bar 2013-09-13 19:33:26 +09:00