Bug 342710, WARNING: NS_ENSURE_TRUE(shell) failed: file nsImageLoadingContent.cpp, line 842, r+sr=bz

git-svn-id: svn://10.0.0.236/trunk@201086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2006-06-28 07:40:13 +00:00
parent 9e61e9484f
commit 7600c51612

View File

@@ -839,10 +839,7 @@ nsImageLoadingContent::FireEvent(const nsAString& aEventType)
NS_ASSERTION(NS_IsMainThread(), "should be on the main thread");
nsIPresShell *shell = document->GetShellAt(0);
NS_ENSURE_TRUE(shell, NS_ERROR_FAILURE);
nsPresContext *presContext = shell->GetPresContext();
NS_ENSURE_TRUE(presContext, NS_ERROR_FAILURE);
nsPresContext *presContext = shell ? shell->GetPresContext() : nsnull;
nsCOMPtr<nsIRunnable> evt =
new nsImageLoadingContent::Event(presContext, this, aEventType, document);