use the post-from-secure warning on mixed content sites: bug 50168 r=thayes sr=blizzard

git-svn-id: svn://10.0.0.236/trunk@95167 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jgmyers%netscape.com 2001-05-17 00:12:33 +00:00
parent 1c83fd9a89
commit b855f16dc7

View File

@ -595,8 +595,9 @@ nsSecureBrowserUIImpl::CheckPost(nsIURI *actionURL, PRBool *okayToPost)
}
// posting to insecure webpage from a secure webpage.
// NOTE: This test is inconsistant with the one above
if (!secure && IS_SECURE(mSecurityState)) {
if (!secure &&
(IS_SECURE(mSecurityState) ||
mSecurityState == STATE_IS_BROKEN)) {
*okayToPost = ConfirmPostToInsecureFromSecure();
} else {
*okayToPost = ConfirmPostToInsecure();