The following code is called from an XUL event script in firefox.
It always returns a null for chrome. What seems to be the problem?

nsCOMPtr<nsIWindowWatcher> ww =
do_GetService("@mozilla.org/embedcomp/window-watcher;1", &rv);
nsIDOMWindow *active = NULL;
ww->GetActiveWindow(&active);
nsIWebBrowserChrome *chrome=NULL;
ww->GetChromeForWindow(active,&chrome);

Same problem when calling same scriptable objects directly from javascript.

Thanks for your help.


_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to