mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-24 08:18:31 +00:00
#443: M1395138 M1400554 M1400003 M1407751 M1261175
This commit is contained in:
@@ -350,6 +350,7 @@ void CleanupOSFileConstants()
|
||||
|
||||
gInitialized = false;
|
||||
delete gPaths;
|
||||
gPaths = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -848,9 +849,7 @@ bool SetStringProperty(JSContext *cx, JS::Handle<JSObject*> aObject, const char
|
||||
*/
|
||||
bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
|
||||
{
|
||||
MOZ_ASSERT(gInitialized);
|
||||
|
||||
if (gPaths == nullptr) {
|
||||
if (!gInitialized || gPaths == nullptr) {
|
||||
// If an initialization error was ignored, we may end up with
|
||||
// |gInitialized == true| but |gPaths == nullptr|. We cannot
|
||||
// |MOZ_ASSERT| this, as this would kill precompile_cache.js,
|
||||
|
||||
Reference in New Issue
Block a user