Commit Graph

1916 Commits

Author SHA1 Message Date
YUKI Hiroshi
3a9e922175 Re-introduce configuration UI to change fixed/unfixed and the size of the tab bar #940 2015-09-28 21:32:06 +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
YUKI Hiroshi
84d73d7471 Fix indent 2015-08-28 18:27:03 +09:00
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