Bug 1146677 - A user disabling mixed content blocking should not affect the site identity icon or messages. r=dolske

This commit is contained in:
Tanvi Vyas
2015-04-15 10:12:36 -07:00
parent 9299a3b105
commit cc9a164cbb

View File

@@ -6837,11 +6837,9 @@ var gIdentityHandler = {
} else if (state & nsIWebProgressListener.STATE_IS_SECURE) {
this.setMode(this.IDENTITY_MODE_DOMAIN_VERIFIED);
} else if (state & nsIWebProgressListener.STATE_IS_BROKEN) {
if ((state & nsIWebProgressListener.STATE_LOADED_MIXED_ACTIVE_CONTENT) &&
gPrefService.getBoolPref("security.mixed_content.block_active_content")) {
if (state & nsIWebProgressListener.STATE_LOADED_MIXED_ACTIVE_CONTENT) {
this.setMode(this.IDENTITY_MODE_MIXED_ACTIVE_LOADED);
} else if ((state & nsIWebProgressListener.STATE_BLOCKED_MIXED_ACTIVE_CONTENT) &&
gPrefService.getBoolPref("security.mixed_content.block_active_content")) {
} else if (state & nsIWebProgressListener.STATE_BLOCKED_MIXED_ACTIVE_CONTENT) {
this.setMode(this.IDENTITY_MODE_MIXED_DISPLAY_LOADED_ACTIVE_BLOCKED);
} else {
this.setMode(this.IDENTITY_MODE_MIXED_DISPLAY_LOADED);