Bug 1386576 - Use list-style-image rather than the image attribute for items in the back/forward menu so that CSS can override this to display back/forward icons. r=mak

MozReview-Commit-ID: LvnpJlGlOqk

--HG--
extra : rebase_source : f704978f2bba7cba24bbbead6dde59d040b6dfce
This commit is contained in:
Dão Gottwald 2017-08-02 14:46:08 +02:00
parent fa46e23606
commit 78551bb89f

View File

@ -4097,8 +4097,10 @@ function FillHistoryMenu(aParent) {
item.setAttribute("historyindex", j - index);
if (j != index) {
item.setAttribute("image",
PlacesUtils.urlWithSizeRef(window, "page-icon:" + uri, 16));
// Use list-style-image rather than the image attribute in order to
// allow CSS to override this.
item.style.listStyleImage =
"url(" + PlacesUtils.urlWithSizeRef(window, "page-icon:" + uri, 16) + ")";
}
if (j < index) {