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 draft
authorPrathiksha <prathikshaprasadsuman@gmail.com>
Wed, 29 Mar 2017 21:45:44 +0530
changeset 553230 20bc12ed303cb00d8f627fc9a1138b6eb3580e73
parent 498360 2baef2ffbaedb7354286726660ebd36e84b432f0
child 621996 9b516a36e9eba926cbf0ab31e9036d15387b465a
push id51560
push userbmo:prathikshaprasadsuman@gmail.com
push dateWed, 29 Mar 2017 16:16:44 +0000
bugs1299212
milestone55.0a1
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
browser/base/content/browser.js
browser/themes/shared/controlcenter/panel.inc.css
--- 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;