Bug 1397448: Part 5 - Make uniqueProcessID a lexically scoped string. r?zombie draft
authorKris Maglione <maglione.k@gmail.com>
Fri, 08 Sep 2017 17:12:43 -0700
changeset 661998 bb6693aaf7fb1454217d19588775c76bc3750e0e
parent 661997 5c9dec67aa40d9dcd9d7ad82a1354f8db258c5f4
child 661999 a62b240e3ed9af71d5346f58e4fa94955ac9c22f
push id78919
push usermaglione.k@gmail.com
push dateSat, 09 Sep 2017 23:05:23 +0000
reviewerszombie
bugs1397448
milestone57.0a1
Bug 1397448: Part 5 - Make uniqueProcessID a lexically scoped string. r?zombie MozReview-Commit-ID: Fxob3RUPQtd
toolkit/components/extensions/ExtensionUtils.jsm
--- a/toolkit/components/extensions/ExtensionUtils.jsm
+++ b/toolkit/components/extensions/ExtensionUtils.jsm
@@ -26,17 +26,17 @@ function getConsole() {
   });
 }
 
 XPCOMUtils.defineLazyGetter(this, "console", getConsole);
 
 const appinfo = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime);
 
 let nextId = 0;
-XPCOMUtils.defineLazyGetter(this, "uniqueProcessID", () => appinfo.uniqueProcessID);
+const uniqueProcessID = String(appinfo.uniqueProcessID);
 
 function getUniqueId() {
   return `${nextId++}-${uniqueProcessID}`;
 }
 
 async function promiseFileContents(path) {
   let res = await OS.File.read(path);
   return res.buffer;