Bug 821182 - Get firefox executable from the directory service instead of guesswork from CurProcD. r=past
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 14 Dec 2012 08:32:57 +0100
changeset 116021 6fe5b65e41ed5a97665838b0fd03e0c7f254631a
parent 116020 a9f1337be665367223aa3d0dfe01792de18e55c9
child 116022 3d898c39d05e155caab76d6635f8ecf4de3ad35a
push id19691
push usermh@glandium.org
push dateFri, 14 Dec 2012 07:35:22 +0000
treeherdermozilla-inbound@6fe5b65e41ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs821182
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 821182 - Get firefox executable from the directory service instead of guesswork from CurProcD. r=past
browser/devtools/debugger/DebuggerUI.jsm
--- a/browser/devtools/debugger/DebuggerUI.jsm
+++ b/browser/devtools/debugger/DebuggerUI.jsm
@@ -531,19 +531,17 @@ ChromeDebuggerProcess.prototype = {
   },
 
   /**
    * Creates and initializes the profile & process for the remote debugger.
    */
   _create: function RDP__create() {
     this.globalUI._chromeDebugger = this;
 
-    let file = FileUtils.getFile("CurProcD",
-      [Services.appinfo.OS == "WINNT" ? "firefox.exe"
-                                      : "firefox-bin"]);
+    let file = Services.dirsvc.get("XREExeF", Ci.nsIFile);
 
     let process = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess);
     process.init(file);
 
     let args = [
       "-no-remote", "-P", this._dbgProfile.name,
       "-chrome", DBG_XUL];