[Project_owners] Re: calling window.sidebar.addPanel() from chrome

Neil neil at parkwaycc.co.uk
Sun Feb 19 21:49:01 EST 2006


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).


More information about the Project_owners mailing list