Skip to content

Commit

Permalink
Look for NativeMessagingHosts in Mozilla directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale committed Dec 9, 2023
1 parent 64a7fe4 commit 3841918
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions toolkit/components/extensions/NativeManifests.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,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("Midori", "Mozilla"),
Services.dirsvc
.get("XRESysNativeManifests", Ci.nsIFile)
.path.replace("Midori", "Mozilla"),
];
this._lookup = (type, name, context) =>
this._tryPaths(type, name, dirs, context);
Expand Down

0 comments on commit 3841918

Please sign in to comment.