Just as the title says,the official course mentions WindowTracker,it may help
Asked
Active
Viewed 497 times
1 Answers
1
You use the widget
package. The very first example in the documentation already shows how you would use an icon as your widget.

Wladimir Palant
- 56,865
- 12
- 98
- 126
-
1I used the widget and the icon showed on the addon bar,not on the status bar which is just next to address bar.Thank you for help. – ly gu Mar 13 '12 at 15:37
-
@lygu: There is no status bar starting with Firefox 4 - it was "merged" into the add-on bar and that's where extensions should be adding their icons. What you mean is a toolbar. See [Using JetPack to add toolbar buttons](http://stackoverflow.com/questions/7670282/using-jetpack-to-add-toolbar-buttons-integrating-xul-and-jetpack-for-firefox-ad) for an earlier question on this. – Wladimir Palant Mar 13 '12 at 19:14
-
Thank you for help.It seems useful,but I don't know how to use it.I found this question,the answer gave a example,but it didn't work,the error information is "File "resource://jid1-izmxbb0vyfj9ma-at-jetpack-api-utils-lib/window-utils.js", line 76, in WindowTracker this.delegate = delegate;TypeError: this.delegate is not extensible",how to solve it?Thanks – ly gu Mar 14 '12 at 13:28