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

This commit is contained in:
jgmyers%netscape.com 2001-05-17 00:12:33 +00:00
Родитель be9eb09e9b
Коммит 32dbe75c00
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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();