Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nsIProcess -- deprecated access to the 'nsIProcess' global

70 views
Skip to first unread message

gNeandr

unread,
Aug 7, 2012, 7:30:41 AM8/7/12
to
From an extension running in FX I need to call TB with special startup
parameters. For that I use

> var go4Process = Components.classes["@mozilla.org/process/util;1"]
> .createInstance(Components.interfaces.nsIProcess);
>
> go4Process.run(false, args, args.length);

With the AMO validation report I get:
Warning: Access to the 'nsIProcess' property is deprecated for security
or other reasons.

Is there a need to change that call; what would be the alternative?


Benjamin Smedberg

unread,
Aug 7, 2012, 10:02:48 AM8/7/12
to gNeandr, dev-ext...@lists.mozilla.org, Jorge Villalobos
I really don't know what this means. Is there a link to more information
or a bug report from the validation report? nsIProcess is really the
only supported way we have to launch new processes (as far as I know).
Although I strongly recommend using the "w" variants, since that is the
only correct way to pass true unicode arguments.

--BDS

gNeandr

unread,
Aug 7, 2012, 10:59:53 AM8/7/12
to
NO, there isn't any further info/link, this is the only info:
> Illegal or deprecated access to the 'nsIProcess' global
>
> Warning: Access to the 'nsIProcess' property is deprecated for security or other reasons.
Günter

Zulkarnain K.

unread,
Aug 7, 2012, 1:26:57 PM8/7/12
to dev-ext...@lists.mozilla.org
According to an AMO editor at AMO forum

> If your addon needs it for a legitimate reason, like launching an executable,
> then it still allowed. This warning is primarily to notify the editor
> who reviews the add-on to pay attention to the use.

See https://forums.mozilla.org/addons/viewtopic.php?p=13146#p13146
> _______________________________________________
> dev-extensions mailing list
> dev-ext...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-extensions



--
Zulkarnain K.
https://profiles.google.com/zoolcar9

Noit

unread,
Apr 6, 2014, 12:17:15 AM4/6/14
to
Much thanks for this reply Zulkarnain I really appreciate it. I was just uploading an addon and ran into the same question this user had and I got worried.
0 new messages