Philip Chee wrote:

I know I can call addPanel() from content using window.sidebar.addPanel(), but 
how do I call addPanel from chrome javascript in order to add an item to the 
Seamonkey sidebar tabs? I've tried document.contentWindow.sidebar.addPanel and 
various combinations of document/content/window but rather than groping around 
in a fog, I'd thought I'd ask here.

addPanel only accepts certain URLs. I believe that the DOM Inspector pref panel reimplements the sidebar adding code, check pref-sidebar.js against nsSidebar.js (which implements window.sidebar).
_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to