From 7b2dd1a3161a04126eb8ea01e4f308d701b20890 Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Wed, 9 Mar 2005 05:40:43 +0000 Subject: [PATCH] the failure to load a uri is not a failure to create a docshell bug 283147 r/sr=bzbarsky --- layout/generic/nsFrameFrame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsFrameFrame.cpp b/layout/generic/nsFrameFrame.cpp index eb753d9e46c0..743469ea27e0 100644 --- a/layout/generic/nsFrameFrame.cpp +++ b/layout/generic/nsFrameFrame.cpp @@ -613,8 +613,10 @@ nsSubDocumentFrame::GetDocShell(nsIDocShell **aDocShell) mOwnsFrameLoader = PR_TRUE; // ... and tell it to start loading. - nsresult rv = mFrameLoader->LoadFrame(); - NS_ENSURE_SUCCESS(rv, rv); + // the failure to load a URL does not constitute failure to + // create/initialize the docshell and therefore the LoadFrame() + // call's return value should not be propagated. + mFrameLoader->LoadFrame(); } }