Hi list,

I'm currently using the hiddenDOMWindow with openDialog to lauch my 
extension with (MozPhone moziax.mozdev.org ) from the command line (eg. 
firefox -phone 123456).

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.
My code is a js component, directly inspired from:
        http://developer.mozilla.org/en/docs/Chrome:_Command_Line
Here is what the extension gets:
        arguments: [xpconnect wrapped nsISupports] [{}]

Does anyone have a working example of passing command line parameter 
from js component to firefox extension ?


Thanks,
-- 
Jean-Denis Girard

SysNux                  Systèmes Linux en Polynésie française
http://www.sysnux.pf/   Tél: +689 483 527 / GSM: +689 797 527
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to