[Project_owners] Opening "Customize Toolbar" window

Bartosz Piec bpiec at student.uci.agh.edu.pl
Sat Sep 2 01:27:26 EDT 2006


Brian King wrote:
> Sounds like the wrong scope, i.e. Try using the window manager to get 
> the browser window (lets call it win), then replace all occurrences of 
> document.getElementById with win.document.getElementById.

But how? Everything I have found was this:
Components.classes["@mozilla.org/appshell/component/browser/instance;1"].getService(Components.interfaces.nsIBrowserInstance);
but it doesn't have 'document' property.

> However, the Customize dialog may not function properly if not opened by 
> the main browser window.

I'm aware of this but I want to try.

-- 
Regards,
Bartosz Piec


More information about the Project_owners mailing list