Bug 472260 - Crash [@ nsDocShell::EnsureContentViewer], r+sr=bz
This commit is contained in:
@@ -215,8 +215,11 @@ nsFrameLoader::ReallyStartLoading()
|
||||
loadInfo->SetReferrer(referrer);
|
||||
|
||||
// Kick off the load...
|
||||
PRBool tmpState = mNeedsAsyncDestroy;
|
||||
mNeedsAsyncDestroy = PR_TRUE;
|
||||
rv = mDocShell->LoadURI(mURIToLoad, loadInfo,
|
||||
nsIWebNavigation::LOAD_FLAGS_NONE, PR_FALSE);
|
||||
mNeedsAsyncDestroy = tmpState;
|
||||
mURIToLoad = nsnull;
|
||||
#ifdef DEBUG
|
||||
if (NS_FAILED(rv)) {
|
||||
@@ -747,7 +750,7 @@ nsFrameLoader::Destroy()
|
||||
win_private->SetFrameElementInternal(nsnull);
|
||||
}
|
||||
|
||||
if ((mInDestructor || !doc ||
|
||||
if ((mNeedsAsyncDestroy || !doc ||
|
||||
NS_FAILED(doc->FinalizeFrameLoader(this))) && mDocShell) {
|
||||
nsCOMPtr<nsIRunnable> event = new nsAsyncDocShellDestroyer(mDocShell);
|
||||
NS_ENSURE_TRUE(event, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
Reference in New Issue
Block a user