mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
ad4e36a1d5
commit
fa8121c4ce
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user