On Tue, 21 Feb 2006 00:52:14 +0800, Philip Chee wrote:

OK. After further testing. If the xSidebar sidebar is closed I get
in my js dump(window.sidebar):
[xpconnect wrapped (nsISupports, nsISidebar, nsIClassInfo)]

If the xSidebar sidebar is open I get:
[object chromeWindow]

The Firefox sidebar uses <browser id="sidebar"> which I followed.

The workaround:

  var xsbSS = Components.classes["@mozilla.org/sidebar;1"]
              .getService(Components.interfaces.nsISidebar);
  xsbSS.addPanel(wrapper.getAttribute("title"), wrapper.href, "");

Phil
-- 
Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]I can't believe my computer's on fire.
* TagZilla 0.059
_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to