fix: look for NativeMessagingHosts in Mozilla directory

(cherry picked from commit 82e1a4cffba38b37de698e142b08eeaae8fb179c)
This commit is contained in:
adamp01
2022-10-27 08:01:24 -07:00
committed by Alex Kontos
parent 2b14267c01
commit 75887a0792

View File

@@ -42,8 +42,12 @@ export var NativeManifests = {
this._lookup = this._winLookup;
} else if (platform == "macosx" || platform == "linux") {
let dirs = [
Services.dirsvc.get("XREUserNativeManifests", Ci.nsIFile).path,
Services.dirsvc.get("XRESysNativeManifests", Ci.nsIFile).path,
Services.dirsvc
.get("XREUserNativeManifests", Ci.nsIFile)
.path.replace("Waterfox", "Mozilla"),
Services.dirsvc
.get("XRESysNativeManifests", Ci.nsIFile)
.path.replace("Waterfox", "Mozilla"),
];
this._lookup = (type, name, context) =>
this._tryPaths(type, name, dirs, context);