diff --git a/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp b/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp index 76c8c5e8642..07fbb5848a1 100644 --- a/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp +++ b/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp @@ -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;