Bug #44568 -> don't fall out and not open the url if we failed to set the load

attributes on a channel. This broke mailto urls because the mailto channel
is just a stub and doesn't implement this method.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@73831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
2000-07-07 21:43:16 +00:00
parent 9940c9a434
commit 0107d848c4

View File

@@ -2973,7 +2973,7 @@ NS_IMETHODIMP nsDocShell::DoChannelLoad(nsIChannel *aChannel, nsURILoadCommand a
break;
}
NS_ENSURE_SUCCESS(aChannel->SetLoadAttributes(loadAttribs), NS_ERROR_FAILURE);
(void) aChannel->SetLoadAttributes(loadAttribs);
NS_ENSURE_SUCCESS(aURILoader->OpenURI(aChannel, aLoadCmd,
aWindowTarget, NS_STATIC_CAST(nsIDocShell*, this)), NS_ERROR_FAILURE);