Bug 1968241 - Clean up unnecessary crashreporter*.ini file logic r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D251045
This commit is contained in:
committed by
afranchuk@mozilla.com
parent
7e69b821f2
commit
2a2d6d70d7
@@ -255,8 +255,6 @@ Environment variables used internally
|
||||
- ``MOZ_CRASHREPORTER_RESTART_XUL_APP_FILE`` - If a XUL app file was specified
|
||||
when starting the app it has to be stored in this variable so that the crash
|
||||
reporter client can restart the application.
|
||||
- ``MOZ_CRASHREPORTER_STRINGS_OVERRIDE`` - Overrides the path used to load the
|
||||
.ini file holding the strings used in the crash reporter client UI.
|
||||
|
||||
Environment variables used for development
|
||||
------------------------------------------
|
||||
|
||||
@@ -15,7 +15,6 @@ import buildconfig
|
||||
# localized.
|
||||
NON_CHROME = set(
|
||||
[
|
||||
"**/crashreporter*.ini",
|
||||
"dictionaries",
|
||||
"defaultagent_localized.ini",
|
||||
"defaults/profile",
|
||||
|
||||
@@ -4317,25 +4317,6 @@ int XREMain::XRE_mainInit(bool* aExitFlag) {
|
||||
getter_AddRefs(userAppDataDir)))) {
|
||||
CrashReporter::SetupExtraData(userAppDataDir,
|
||||
nsDependentCString(mAppData->buildID));
|
||||
|
||||
// see if we have a crashreporter-override.ini in the application
|
||||
// directory
|
||||
nsCOMPtr<nsIFile> overrideini;
|
||||
if (NS_SUCCEEDED(
|
||||
mDirProvider.GetAppDir()->Clone(getter_AddRefs(overrideini))) &&
|
||||
NS_SUCCEEDED(
|
||||
overrideini->AppendNative("crashreporter-override.ini"_ns))) {
|
||||
#ifdef XP_WIN
|
||||
nsAutoString overridePathW;
|
||||
overrideini->GetPath(overridePathW);
|
||||
NS_ConvertUTF16toUTF8 overridePath(overridePathW);
|
||||
#else
|
||||
nsAutoCString overridePath;
|
||||
overrideini->GetNativePath(overridePath);
|
||||
#endif
|
||||
|
||||
SaveWordToEnv("MOZ_CRASHREPORTER_STRINGS_OVERRIDE", overridePath);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// We might have registered a runtime exception module very early in process
|
||||
|
||||
Reference in New Issue
Block a user