Bug 1298530 - Fix strikethrough for blocked controlcenter permission icons. r?florian draft
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 30 Aug 2016 16:39:19 +0200
changeset 407428 8c5134ff09bc7193386b47578b96b9922a2a432c
parent 407237 26e22af660e543ebb69930f082188b69ec756185
child 529884 3163397e8c48c72eaf6421c2da92da5733d0dd2f
push id27975
push userbmo:jhofmann@mozilla.com
push dateTue, 30 Aug 2016 14:39:58 +0000
reviewersflorian
bugs1298530
milestone51.0a1
Bug 1298530 - Fix strikethrough for blocked controlcenter permission icons. r?florian MozReview-Commit-ID: 8TPSOGQ6rC5
browser/base/content/browser.css
browser/base/content/browser.js
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -757,17 +757,17 @@ html|*#fullscreen-exit-button {
 
 
 /* notification anchors should only be visible when their associated
    notifications are */
 .notification-anchor-icon {
   -moz-user-focus: normal;
 }
 
-.blocked-permission-icon:not([showing]),
+#blocked-permissions-container > .blocked-permission-icon:not([showing]),
 .notification-anchor-icon:not([showing]) {
   display: none;
 }
 
 #invalid-form-popup > description {
   max-width: 280px;
 }
 
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7360,17 +7360,17 @@ var gIdentityHandler = {
   _createPermissionItem: function (aPermission) {
     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";
+      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);