Infocatcher / Sidebars_List

Adds drop-down list to switch sidebars, restartless extension for Firefox
https://addons.mozilla.org/firefox/addon/sidebars-list/
Other
1 stars 1 forks source link

Improve support of Sidebars button in Firefox 30+ #7

Closed Infocatcher closed 10 years ago

Infocatcher commented 10 years ago

We have:

Infocatcher commented 10 years ago

resource:///modules/CustomizableWidgets.jsm

  {
    id: "sidebar-button",
    type: "view",
    viewId: "PanelUI-sidebar",
    onViewShowing: function(aEvent) {
      ...
      // First clear any existing menuitems then populate. Social sidebar
      // options may not have been added yet, so we do that here. Add it to the
      // standard menu first, then copy all sidebar options to the panel.
      win.SocialSidebar.clearProviderMenus();
      let providerMenuSeps = menu.getElementsByClassName("social-provider-menu");
      if (providerMenuSeps.length > 0)
        win.SocialSidebar.populateProviderMenu(providerMenuSeps[0]);

      fillSubviewFromMenuItems([...menu.children], doc.getElementById("PanelUI-sidebarItems"));
    }

But there is no usable notifications. :(