[Project_owners] nsIWindowWatcher.openWindow and command line arguments

Nickolay Ponomarev asqueella at gmail.com
Wed Nov 21 23:53:38 PST 2007


On Nov 22, 2007 2:37 AM, Jean-Denis Girard <jd.girard at sysnux.pf> wrote:
> I've read that hiddenDOMWindow should be avoided, so I would like to use
> nsIWindowWatcher.openWindow instead, but I'm stuck with passing the
> argument (123456) to my extension. I've tried many variations, without
> success. My extension always gets an empty object.

You're limited to passing XPCOM objects around via nsIWindowWatcher.openWindow.

This should be helpful:
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/components/help/content/contextHelp.js&rev=1.6&mark=60-68#60

Nickolay


More information about the Project_owners mailing list