b=565186; remove NS_ENSURE_TRUE in nsHtml5TreeOpExecutor; r=hsivonen

This commit is contained in:
Vladimir Vukicevic
2010-06-04 12:03:24 -07:00
parent c8721bef06
commit 93269b61c0

View File

@@ -607,7 +607,8 @@ nsHtml5TreeOpExecutor::FlushDocumentWrite()
PRBool
nsHtml5TreeOpExecutor::IsScriptEnabled()
{
NS_ENSURE_TRUE(mDocument && mDocShell, PR_TRUE);
if (!mDocument || !mDocShell)
return PR_TRUE;
nsCOMPtr<nsIScriptGlobalObject> globalObject = mDocument->GetScriptGlobalObject();
// Getting context is tricky if the document hasn't had its
// GlobalObject set yet