Closed
Bug 528471
Opened 16 years ago
Closed 16 years ago
Toolbar buttons added with navBar.insertItem disappear on restart
Categories
(Firefox :: Extension Compatibility, defect, P1)
Tracking
()
RESOLVED
INVALID
Firefox 3.6
People
(Reporter: mkaply, Unassigned)
Details
Create a new profile
Install TrackerWatcher (https://addons.mozilla.org/en-US/firefox/addon/14454)
If you don't see the icon on the toolbar, go to customize toolbar and drag it between home and the URL bar.
Install Jetpack.
Notice that the icon disappears.
It's back in customize toolbar.
Jetpack shouldn't be screwing with other add-ons.
Updated•16 years ago
|
Priority: -- → P2
This seems part of a larger problem where Jetpack completely resets firefox's toolbar to the default icons. After removing jetpack and restarting firefox, my customized toolbar returned.
I can confirm this issue with ff 3.5.5 on mac osx.
| Reporter | ||
Comment 3•16 years ago
|
||
Someone should really fix this quick.
JetPack is actually violating the AMO rules by doing this (even if it is just a bug).
If I don't see movement on this soon, I'm going to request JetPack be moved into the sandbox.
Comment 4•16 years ago
|
||
I just bumped the priority to the highest level, will talk to Atul today re: this issue.
Assignee: nobody → avarma
Severity: major → critical
OS: Mac OS X → All
Priority: P2 → P1
| Reporter | ||
Comment 5•16 years ago
|
||
What is the status of this?
| Reporter | ||
Comment 6•16 years ago
|
||
Interesting. It's not Jetpack at all.
If you install any extension that adds a toolbar icon and then install another extension and use the Extension manager to restart, the icon goes away.
Firefox bog.
Assignee: avarma → nobody
Component: Jetpack → Extension Compatibility
Product: Mozilla Labs → Firefox
QA Contact: jetpack → extension.compatibility
Target Milestone: -- → Firefox 3.6
Version: Trunk → 3.6 Branch
| Reporter | ||
Comment 7•16 years ago
|
||
It looks like if an extension uses navBar.insertitem to insert a toolbar button, it disappears on restart:
var navBar = document.getElementById("nav-bar");
var urlbarContainer = document.getElementById("urlbar-container");if (navBar && urlbarContainer) {
navBar.insertItem("ID OF BUTTON IN TOOLBAR PALETTE", urlbarContainer);
}
Summary: JetPack removes other extensions toolbar icons → Toolbar buttons added with navBar.insertItem disappear on restart
| Reporter | ||
Comment 8•16 years ago
|
||
Continuing the conversation with myself.
In order for insertItem to work correctly, you have to explicitly update the attribute for currentset on the navBar (or whatever you are inserting into).
And then you have to document.persist it.
Didn't find any documentation on this on devmo.
Comment 9•16 years ago
|
||
Isn't this what you're looking for?
https://developer.mozilla.org/en/Code_snippets/Toolbar
Comment 10•16 years ago
|
||
> In order for insertItem to work correctly, you have to explicitly update the
attribute for currentset on the navBar (or whatever you are inserting into).
> And then you have to document.persist it.
Um this is known. It has been discussed several times in Mozillazine and as jorgev points out *is* documented on DevMo.
| Reporter | ||
Comment 11•16 years ago
|
||
My bad. I did a myriad of searches and never found that code.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•