diff --git a/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js b/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js index 0c992cfa26c..edacd9f2981 100644 --- a/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js +++ b/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js @@ -195,8 +195,7 @@ StyleRulesViewer.prototype = var proc = C.classes['@mozilla.org/process/util;1'].createInstance (C.interfaces.nsIProcess); proc.init(exe); - var pid = {}; - proc.run(false, [url], 1, pid); + proc.run(false, [url], 1); } catch (ex) { alert("Unable to open editor."); } diff --git a/mozilla/xpcom/threads/nsIProcess.idl b/mozilla/xpcom/threads/nsIProcess.idl index a2c916ba785..1989d135938 100644 --- a/mozilla/xpcom/threads/nsIProcess.idl +++ b/mozilla/xpcom/threads/nsIProcess.idl @@ -11,7 +11,12 @@ interface nsIProcess : nsISupports void kill(); /** XXX what charset? **/ - void run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count, out unsigned long pid); + /** Executes the file this object was initialized with + * @param blocking Whether to wait until the process terminates before returning or not + * @param args An array of arguments to pass to the process + * @param count The length of the args array + * @return the PID of the newly spawned process */ + unsigned long run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count); readonly attribute nsIFile location; readonly attribute unsigned long pid;