开发者

Add FF App Menu Item (Restartless)

I am trying to create a Fir开发者_如何学运维efox add-on that is restartless and has a menu entry in the Firefox App Menu (preferably in the Options sub-menu). I cannot find anything anywhere on how to add an entry to the app menu while being restartless! I am building it with the Mozilla Addon Builder. Any and all help would be appreciated!


In fact, there isn't really a way to do this. A "normal" restartless add-on has to enumerate all open browser windows and add a menu entry "manually" to the element with id="appmenu-popup". It will also have to watch for new windows being opened to make the same change there as well. While this is already complicated enough (bug 675387 is about making this simpler by allowing using overlays like in non-restartless add-ons) I strongly suspect that the Add-on SDK (that the Add-on Builder is based on) doesn't provide any way to do this at all. After all, it is only meant for add-ons that can live with a limited set of features.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜