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
This commit is contained in:
mscott@netscape.com
2000-07-07 21:43:16 +00:00
parent 75d542c30f
commit 6404e4fba0

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);