part of the fix for #46888. after cancelling a news message, you can't
select another message. fix by naving@netscape.com. r=sspitzer,a=mscott also a couple bullet proofing fixes to prevent crashes. git-svn-id: svn://10.0.0.236/trunk@79556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1005,7 +1005,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
|
||||
if(mDocLoader == loader && NS_FAILED(aStatus))
|
||||
{
|
||||
nsXPIDLCString host;
|
||||
nsresult hostResult = aURL->GetHost(getter_Copies(host));
|
||||
nsresult hostResult = NS_ERROR_FAILURE;
|
||||
if (aURL) {
|
||||
hostResult = aURL->GetHost(getter_Copies(host));
|
||||
}
|
||||
if (NS_SUCCEEDED(hostResult) && host)
|
||||
{
|
||||
CBufDescriptor buf((const char *)host, PR_TRUE, PL_strlen(host) + 1);
|
||||
|
||||
Reference in New Issue
Block a user