зеркало из https://github.com/mozilla/pjs.git
use the post-from-secure warning on mixed content sites: bug 50168 r=thayes sr=blizzard
This commit is contained in:
Родитель
be9eb09e9b
Коммит
32dbe75c00
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче