b=139948 SSL Tooltip not updated when going from one ssl site to another
r=javi sr=jag a=rjesup adt=putterman git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120532 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -916,49 +916,49 @@ nsresult nsSecureBrowserUIImpl::FinishedLoadingStateChange(nsIRequest* aRequest)
|
||||
mSSLStatus = nsnull;
|
||||
mInfoTooltip.Truncate();
|
||||
}
|
||||
}
|
||||
|
||||
if (mToplevelEventSink)
|
||||
if (mToplevelEventSink)
|
||||
{
|
||||
PRInt32 newState = STATE_IS_INSECURE;
|
||||
|
||||
switch (newSecurityState)
|
||||
{
|
||||
PRInt32 newState = STATE_IS_INSECURE;
|
||||
case lis_broken_security:
|
||||
newState = STATE_IS_BROKEN;
|
||||
break;
|
||||
|
||||
switch (newSecurityState)
|
||||
{
|
||||
case lis_broken_security:
|
||||
newState = STATE_IS_BROKEN;
|
||||
break;
|
||||
case lis_mixed_security:
|
||||
newState = STATE_IS_BROKEN;
|
||||
break;
|
||||
|
||||
case lis_mixed_security:
|
||||
newState = STATE_IS_BROKEN;
|
||||
break;
|
||||
case lis_low_security:
|
||||
newState = STATE_IS_SECURE | STATE_SECURE_LOW;
|
||||
break;
|
||||
|
||||
case lis_low_security:
|
||||
newState = STATE_IS_SECURE | STATE_SECURE_LOW;
|
||||
break;
|
||||
case lis_high_security:
|
||||
newState = STATE_IS_SECURE | STATE_SECURE_HIGH;
|
||||
break;
|
||||
|
||||
case lis_high_security:
|
||||
newState = STATE_IS_SECURE | STATE_SECURE_HIGH;
|
||||
break;
|
||||
|
||||
default:
|
||||
case lis_no_security:
|
||||
newState = STATE_IS_INSECURE;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
PR_LOG(gSecureDocLog, PR_LOG_DEBUG,
|
||||
("SecureUI:%p: FinishedLoadingStateChange: calling OnSecurityChange\n", this
|
||||
));
|
||||
|
||||
mToplevelEventSink->OnSecurityChange(aRequest, newState);
|
||||
}
|
||||
else
|
||||
{
|
||||
PR_LOG(gSecureDocLog, PR_LOG_DEBUG,
|
||||
("SecureUI:%p: FinishedLoadingStateChange: NO mToplevelEventSink!\n", this
|
||||
));
|
||||
default:
|
||||
case lis_no_security:
|
||||
newState = STATE_IS_INSECURE;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
PR_LOG(gSecureDocLog, PR_LOG_DEBUG,
|
||||
("SecureUI:%p: FinishedLoadingStateChange: calling OnSecurityChange\n", this
|
||||
));
|
||||
|
||||
mToplevelEventSink->OnSecurityChange(aRequest, newState);
|
||||
}
|
||||
else
|
||||
{
|
||||
PR_LOG(gSecureDocLog, PR_LOG_DEBUG,
|
||||
("SecureUI:%p: FinishedLoadingStateChange: NO mToplevelEventSink!\n", this
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user