Closed Bug 935471 Opened 11 years ago Closed 11 years ago

Add-on items are re-added on every restart

Categories

(Firefox :: Toolbars and Customization, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 940099

People

(Reporter: lucasr, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P?])

Attachments

(1 file)

Attached image Screenshot
I have Buffer and Lightbeam installed. Even though I removed them from the toolbar, these add-ons are re-added to the toolbar on every restart.
Blocks: australis-cust
No longer blocks: australis
Buffer is just being dumb, looking at the source code:

// Navigation bar icon
// exports.main is called when extension is installed or re-enabled
exports.main = function(options, callbacks) {

    // for the current window
    var browserWindow = mediator.getMostRecentWindow('navigator:browser');
    addNavBarButton(browserWindow);

    // handle new windows
    var windowListener = {
      onOpenWindow: function(aWindow) {
        // Wait for the window to finish loading
        var domWindow = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowInternal || Ci.nsIDOMWindow);
        addNavBarButton(domWindow);
        domWindow.addEventListener("load", function() {
          domWindow.removeEventListener("load", arguments.callee, false);
          addNavBarButton(domWindow);
        }, false);
      },
      onCloseWindow: function(aWindow) {
        removeNavBarButton(aWindow);
      },
      onWindowTitleChange: function(aWindow, aTitle) { }
    };
    mediator.addListener(windowListener);
};


We're tracking lightbeam and other SDK add-ons in bug 940099.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: