Closed Bug 627242 Opened 13 years ago Closed 13 years ago

When I disable a jetpack, it hides my Addon bar

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 635714

People

(Reporter: dholbert, Unassigned)

References

()

Details

STEPS TO REPRODUCE:
 0. Start with a fresh profile (for simplicity)

 1. In View | Toolbars, enable "Addon Bar"
  1a. OPTIONAL: View|Toolbars|Customize, and add e.g. the sync icon to the Addons toolbar

 2. Load this minimal jetpack:
      https://builder.addons.mozilla.org/addon/1000076/latest/
   and click "Test". This adds a widget to your Addons bar saying "101" (and may trigger Bug 627235, shrinking the bar slightly - disregard that for now)

 3. Click "Test" again, to disable the jetpack.

ACTUAL RESULTS: Addon bar disappears.

EXPECTED RESULTS: Addon bar should remain. I explicitly asked for it to be shown, back in step 1.  It also potentially has other content on it (from step 1a) that still I want to have access to.

NOTE: The same results happen if you install a jetpack (e.g. gandalf's 'hard blockers counter'*) and then disable it in the addons manager.

*https://addons.mozilla.org/en-US/firefox/addon/hard-blockers-counter/
OS: Linux → All
Hardware: x86_64 → All
Here's the relevant bit in the Add-on SDK:

https://github.com/mozilla/addon-sdk/blob/master/packages/addon-kit/lib/widget.js#L598

It's a bug in the Widget code, it's only checking for other widgets, not for anything else on the bar.
Widgets got a bit of love in 1.0b4, maybe this was fixed as part of it? Can you try with a recent pull of the SDK?
Fixed :)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.