-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildMozillaMach: update system dir patch for Firefox 133+
Signed-off-by: Sefa Eyeoglu <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pkgs/applications/networking/browsers/firefox/env_var_for_system_dir-ff133.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp | ||
index 6db876975187..5882c5d7f1d6 100644 | ||
--- a/toolkit/xre/nsXREDirProvider.cpp | ||
+++ b/toolkit/xre/nsXREDirProvider.cpp | ||
@@ -11,6 +11,7 @@ | ||
|
||
#include "jsapi.h" | ||
#include "xpcpublic.h" | ||
+#include "prenv.h" | ||
#include "prprf.h" | ||
|
||
#include "nsIAppStartup.h" | ||
@@ -297,7 +297,8 @@ static nsresult GetSystemParentDirectory(nsIFile** aFile) { | ||
"/usr/lib/mozilla"_ns | ||
# endif | ||
; | ||
- rv = NS_NewNativeLocalFile(dirname, getter_AddRefs(localDir)); | ||
+ const char* pathVar = PR_GetEnv("MOZ_SYSTEM_DIR"); | ||
+ rv = NS_NewNativeLocalFile((pathVar && *pathVar) ? nsDependentCString(pathVar) : reinterpret_cast<const nsCString&>(dirname), getter_AddRefs(localDir)); | ||
# endif | ||
|
||
if (NS_SUCCEEDED(rv)) { |