Bug 1756609 - Remove security.secure_connection_icon_color_gray pref. r=prathiksha

Differential Revision: https://phabricator.services.mozilla.com/D139391
This commit is contained in:
Paul Zuehlcke 2022-03-09 11:09:19 +00:00
parent 0c27c573a8
commit 8ed95d1fe1
4 changed files with 0 additions and 39 deletions

View File

@ -1635,9 +1635,6 @@ pref("security.insecure_connection_icon.enabled", true);
// Show degraded UI for http pages in private mode.
pref("security.insecure_connection_icon.pbmode.enabled", true);
// For secure connections, show gray instead of green lock icon
pref("security.secure_connection_icon_color_gray", true);
// Show "Not Secure" text for http pages; disabled for now
pref("security.insecure_connection_text.enabled", false);
pref("security.insecure_connection_text.pbmode.enabled", false);

View File

@ -357,16 +357,6 @@ var gIdentityHandler = {
);
return this._httpsOnlyModeEnabledPBM;
},
get _useGrayLockIcon() {
delete this._useGrayLockIcon;
XPCOMUtils.defineLazyPreferenceGetter(
this,
"_useGrayLockIcon",
"security.secure_connection_icon_color_gray",
false
);
return this._useGrayLockIcon;
},
/**
* Handles clicks on the "Clear Cookies and Site Data" button.
@ -872,13 +862,6 @@ var gIdentityHandler = {
);
}
// Gray lock icon for secure connections if pref set
this._updateAttribute(
this._identityIcon,
"lock-icon-gray",
this._useGrayLockIcon
);
// Push the appropriate strings out to the UI
this._identityIcon.setAttribute("tooltiptext", tooltip);
@ -1028,13 +1011,6 @@ var gIdentityHandler = {
ciphers = "weak";
}
// Gray lock icon for secure connections if pref set
this._updateAttribute(
this._identityPopup,
"lock-icon-gray",
this._useGrayLockIcon
);
// If HTTPS-Only Mode is enabled, check the permission status
const privateBrowsingWindow = PrivateBrowsingUtils.isWindowPrivate(window);
let httpsOnlyStatus = "";

View File

@ -333,12 +333,6 @@
#identity-popup[connection^=secure] .identity-popup-security-connection {
background-image: url(chrome://global/skin/icons/security.svg);
-moz-context-properties: fill;
}
#identity-popup[connection^=secure][lock-icon-gray] .identity-popup-security-connection {
-moz-context-properties: fill, fill-opacity;
fill: currentColor;
}
/* Use [isbroken] to make sure we don't show a warning lock on an http page. See Bug 1192162. */

View File

@ -177,12 +177,6 @@
list-style-image: url(chrome://global/skin/icons/security.svg);
}
#identity-box[pageproxystate="valid"].verifiedDomain #identity-icon:not([lock-icon-gray]),
#identity-box[pageproxystate="valid"].mixedActiveBlocked #identity-icon:not([lock-icon-gray]) {
fill-opacity: 1;
fill: #12BC00;
}
#identity-box[pageproxystate="valid"].weakCipher #identity-icon,
#identity-box[pageproxystate="valid"].mixedDisplayContent #identity-icon,
#identity-box[pageproxystate="valid"].mixedDisplayContentLoadedActiveBlocked #identity-icon,