the failure to load a uri is not a failure to create a docshell bug 283147 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2005-03-09 05:40:43 +00:00
Родитель 2b603329ef
Коммит 7b2dd1a316
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -613,8 +613,10 @@ nsSubDocumentFrame::GetDocShell(nsIDocShell **aDocShell)
mOwnsFrameLoader = PR_TRUE; mOwnsFrameLoader = PR_TRUE;
// ... and tell it to start loading. // ... and tell it to start loading.
nsresult rv = mFrameLoader->LoadFrame(); // the failure to load a URL does not constitute failure to
NS_ENSURE_SUCCESS(rv, rv); // create/initialize the docshell and therefore the LoadFrame()
// call's return value should not be propagated.
mFrameLoader->LoadFrame();
} }
} }