Bug 1302088 - Fixing contextual identity menu icon to be visible by using the favicon class r?dao
MozReview-Commit-ID: 7vjry52dtnc
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -454,16 +454,17 @@ function createUserContextMenu(event, ad
menuitem.setAttribute("data-usercontextid", identity.userContextId);
menuitem.setAttribute("label", ContextualIdentityService.getUserContextLabel(identity.userContextId));
if (identity.accessKey) {
menuitem.setAttribute("accesskey", bundle.getString(identity.accessKey));
}
menuitem.classList.add("menuitem-iconic");
+ menuitem.classList.add("menuitem-with-favicon");
if (addCommandAttribute) {
menuitem.setAttribute("command", "Browser:NewUserContextTab");
}
menuitem.setAttribute("image", identity.icon);
docfrag.appendChild(menuitem);