we're now returning load url error codes out
git-svn-id: svn://10.0.0.236/trunk@42215 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0c146898d9
commit
aa34ec2e6c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user