Bug 251123: HTTPS lock icon does not explain mixed secure/non-encrypted icon when hovering, r=kaie+beltzner, sr=dveditz

git-svn-id: svn://10.0.0.236/trunk@184616 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2005-11-15 00:13:36 +00:00
parent dfd7b61246
commit b8224a61b4
2 changed files with 7 additions and 1 deletions

View File

@ -268,7 +268,12 @@ nsSecureBrowserUIImpl::GetState(PRUint32* aState)
NS_IMETHODIMP
nsSecureBrowserUIImpl::GetTooltipText(nsAString& aText)
{
if (!mInfoTooltip.IsEmpty())
if (mPreviousSecurityState == lis_mixed_security)
{
GetBundleString(NS_LITERAL_STRING("SecurityButtonMixedContentTooltipText").get(),
aText);
}
else if (!mInfoTooltip.IsEmpty())
{
aText = mInfoTooltip;
}

View File

@ -49,4 +49,5 @@ EnterSecureShowAgain=Alert me whenever I am about to view an encrypted page.
WeakSecureShowAgain=Alert me whenever I am about to view a page that uses low-grade encryption.
PostToInsecureFromInsecureShowAgain=Alert me whenever I submit information that's not encrypted.
SecurityButtonTooltipText=Displays security information about the current page
SecurityButtonMixedContentTooltipText=Warning: Contains unauthenticated content
Continue=Continue