Bug 529544 - Make the HTML5 parser not participate on Mochitest. (orange fix)
This commit is contained in:
@@ -59,7 +59,6 @@ nsHtml5Module::InitializeStatics()
|
||||
{
|
||||
nsContentUtils::AddBoolPrefVarCache("html5.enable", &sEnabled);
|
||||
nsContentUtils::AddBoolPrefVarCache("html5.offmainthread", &sOffMainThread);
|
||||
NS_GetMainThread(&sMainThread);
|
||||
nsHtml5Atoms::AddRefAtoms();
|
||||
nsHtml5AttributeName::initializeStatics();
|
||||
nsHtml5ElementName::initializeStatics();
|
||||
@@ -128,6 +127,10 @@ nsHtml5Module::GetStreamParserThread()
|
||||
}
|
||||
return sStreamParserThread;
|
||||
}
|
||||
if (!sMainThread) {
|
||||
NS_GetMainThread(&sMainThread);
|
||||
NS_ASSERTION(sMainThread, "Main thread getter failed");
|
||||
}
|
||||
return sMainThread;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user