Bug 529544 - Make the HTML5 parser not participate on Mochitest. (orange fix)

This commit is contained in:
Henri Sivonen
2009-11-19 17:13:19 +02:00
parent 852acb297e
commit 92e10060c2
3 changed files with 8 additions and 3 deletions

View File

@@ -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;
}