diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp index 8eab41549a4c..6e8cfecd6924 100644 --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp @@ -3391,7 +3391,7 @@ class AddPreferencesMemoryReporterRunnable : public Runnable { } // namespace // A list of changed prefs sent from the parent via shared memory. -static InfallibleTArray* gChangedDomPrefs; +static nsTArray* gChangedDomPrefs; static const char kTelemetryPref[] = "toolkit.telemetry.enabled"; static const char kChannelPref[] = "app.update.channel"; @@ -3685,7 +3685,7 @@ void Preferences::DeserializePreferences(char* aStr, size_t aPrefsLen) { MOZ_ASSERT(!XRE_IsParentProcess()); MOZ_ASSERT(!gChangedDomPrefs); - gChangedDomPrefs = new InfallibleTArray(); + gChangedDomPrefs = new nsTArray(); char* p = aStr; while (*p != '\0') {