Bug 1299212 - Stop the animation of the camera and microphone icons to stop them from blinking in the identity popup in the ALLOW state. r? johannh
MozReview-Commit-ID: Hw0jz58A9Zz
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7539,18 +7539,16 @@ var gIdentityHandler = {
let container = document.createElement("hbox");
container.setAttribute("class", "identity-popup-permission-item");
container.setAttribute("align", "center");
let img = document.createElement("image");
let classes = "identity-popup-permission-icon " + aPermission.id + "-icon";
if (aPermission.state == SitePermissions.BLOCK)
classes += " blocked-permission-icon";
- if (aPermission.inUse)
- classes += " in-use";
img.setAttribute("class", classes);
let nameLabel = document.createElement("label");
nameLabel.setAttribute("flex", "1");
nameLabel.setAttribute("class", "identity-popup-permission-label");
nameLabel.textContent = SitePermissions.getPermissionLabel(aPermission.id);
let stateLabel = document.createElement("label");
--- a/browser/themes/shared/controlcenter/panel.inc.css
+++ b/browser/themes/shared/controlcenter/panel.inc.css
@@ -370,24 +370,16 @@ description#identity-popup-content-verif
margin-top: 5px;
}
.identity-popup-permission-icon {
width: 16px;
height: 16px;
}
-.identity-popup-permission-icon.in-use {
- animation: 1.5s ease in-use-blink infinite;
-}
-
-@keyframes in-use-blink {
- 50% { opacity: 0; }
-}
-
.identity-popup-permission-label,
.identity-popup-permission-state-label {
/* We need to align the action buttons and permission icons with the text.
This is tricky because the icon height is defined in pixels, while the
font height can vary with platform and system settings, and at least on
Windows the default font metrics reserve more extra space for accents.
This value is a good compromise for different platforms and font sizes. */
margin-top: -0.1em;