we're now returning load url error codes out

This commit is contained in:
valeski%netscape.com 1999-08-04 21:45:06 +00:00
parent f37eb606f8
commit c154601cf9

View File

@ -804,6 +804,7 @@ nsBrowserAppCore::WalletSafeFillin(nsIDOMWindow*, nsIDOMWindow*) {
NS_IMETHODIMP
nsBrowserAppCore::LoadUrl(const nsString& aUrl)
{
nsresult rv = NS_OK;
char * urlstr = nsnull;
urlstr = aUrl.ToNewCString();
@ -815,15 +816,15 @@ nsBrowserAppCore::LoadUrl(const nsString& aUrl)
GetId(id);
if ( id.Find("ViewSource") == 0 ) {
// Viewing source, load with "view-source" command.
mContentAreaWebShell->LoadURL(nsString(urlstr).GetUnicode(), "view-source", nsnull, PR_FALSE );
rv = mContentAreaWebShell->LoadURL(nsString(urlstr).GetUnicode(), "view-source", nsnull, PR_FALSE );
} else {
// Normal browser.
mContentAreaWebShell->LoadURL(nsString(urlstr).GetUnicode());
rv = mContentAreaWebShell->LoadURL(nsString(urlstr).GetUnicode());
}
delete[] urlstr;
return NS_OK;
return rv;
}
NS_IMETHODIMP