Bug 1275432 - showing container icons in file and tab menu. draft
authorJonathan Kingston <jkingston@mozilla.com>
Thu, 26 May 2016 12:12:24 +0100
changeset 371299 19de89ab0bb934f23cae4b4f6f656b2f539efe0c
parent 371163 a246982f6cbfc9cc3f6758d66446d65beb9b9193
child 521965 ec395614ecb2cae37938ca384e4d5c9282fa1595
push id19297
push userjkingston@mozilla.com
push dateThu, 26 May 2016 11:12:44 +0000
bugs1275432
milestone49.0a1
Bug 1275432 - showing container icons in file and tab menu. MozReview-Commit-ID: 9QJHU188MwI
browser/base/content/utilityOverlay.js
toolkit/themes/linux/global/menu.css
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -422,17 +422,17 @@ function createUserContextMenu(event, ad
     menuitem.setAttribute("usercontextid", identity.userContextId);
     menuitem.setAttribute("label", bundle.getString(identity.label));
     menuitem.setAttribute("accesskey", bundle.getString(identity.accessKey));
 
     if (addCommandAttribute) {
       menuitem.setAttribute("command", "Browser:NewUserContextTab");
     }
 
-    menuitem.style.listStyleImage = "url(" + identity.icon + ")";
+    menuitem.setAttribute("image", identity.icon);
 
     docfrag.appendChild(menuitem);
   });
 
   event.target.appendChild(docfrag);
   return true;
 }
 
--- a/toolkit/themes/linux/global/menu.css
+++ b/toolkit/themes/linux/global/menu.css
@@ -203,8 +203,13 @@ menulist > menupopup > menuseparator {
 
 /* ::::: tree column picker ::::: */
 
 .treecell-popupcell-menu {
   margin-inline-start: -2px;
   list-style-image: url("chrome://global/skin/columnselect.gif");
   -moz-image-region: auto;
 }
+
+/* ::::: context menu ::::: */
+menuitem[command="Browser:NewUserContextTab"] image {
+  visibility: visible;
+}