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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user