Ja wrote:
Hello,
I'm trying to open new window using XPCOM in xul:script - I know that
nsIWindowCreator2 should be used.

You should use nsIWindowWatcher, not nsIWindowCreator2.


That said, what is your question?
Assuming "how to open new windows":

       var winWatcher = Components.
         classes["@mozilla.org/embedcomp/window-watcher;1"].
         getService(Components.interfaces.nsIWindowWatcher);

winWatcher.openWindow(null /* or parent window if you have one */, "http://foo/bar";, null, "" /* or a features string, if needed/desired */ , null);
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to