Closed Bug 1111450 Opened 10 years ago Closed 10 years ago

Panel doesn't open when more than one window is opened

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: evold, Unassigned)

References

Details

From https://stackoverflow.com/questions/27401059/firefox-extension-panel-doesnt-open-when-more-than-one-window-is-opened : I attached a panel for a button in Firefox, it works normally when only one browser window is open, but doesnt work as soon as more windows are being opened. Then it simply doesnt pop up anymore. This is my code in main.js: var toolbarbutton = ToggleButton({ id: "my_button", label: "button", icon: { "16": self.data.url("icon16.png") }, tooltiptext: "text", onChange: handleChange }); var panel_button = panel.Panel({ contentURL: self.data.url("button.html"), height: 250, onHide: handleHide, contentScriptFile: [self.data.url("jquery-2.1.1.min.js"), self.data.url("myscript.js")] }); function handleChange(state) { if (state.checked) { panel_button.show({ position: toolbarbutton }); } } function handleHide() { toolbarbutton.state('window', {checked: false}); } The handlechange function doesnt seem to do anything when multiple windows are open, but works fine when its just one. Anyone any Ideas why this is and how to fix it? Help is appreciated. Edit: Even if it works with one window, it stops working entirely as soon I open another one and doesnt work even if I close all windows except one.
Hey Matteo, can you take a look at this one, we should make a test for it if we don't have one too.
Flags: needinfo?(zer0)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(zer0)
You need to log in before you can comment on or make changes to this bug.