Bug #38374 --> we were throwing an assertion in correctly because we couldn't create a content viewer. This is

actually an okay case, we'll later try to fire a helper app in this condition. No need to assert.

r=valeski
This commit is contained in:
mscott%netscape.com 2000-06-22 06:55:10 +00:00
parent ad4e36a1d5
commit fa8121c4ce

View File

@ -96,8 +96,9 @@ NS_IMETHODIMP nsDSURIContentListener::DoContent(const char* aContentType,
mDocShell->OnLoadingSite(aOpenedChannel);
NS_ENSURE_SUCCESS(mDocShell->CreateContentViewer(aContentType,
aOpenedChannel, aContentHandler), NS_ERROR_FAILURE);
nsresult rv = mDocShell->CreateContentViewer(aContentType,
aOpenedChannel, aContentHandler);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE; // it's okay if we don't know how to handle the content
if(loadAttribs & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI)
mDocShell->SetFocus();