Bug 1369704 - Menulist items aren't highlighted r=mconley

MozReview-Commit-ID: 3rrWq4zhBhF

--HG--
extra : rebase_source : 3d3450b468ca8debcf18f7709154df2517a62ee5
This commit is contained in:
Ricky Chien 2017-06-04 12:52:21 +08:00
parent 49a7bff27a
commit 7b7036e509

View File

@ -13,7 +13,7 @@ var gSearchResultsPane = {
init() {
let controller = this.getSelectionController();
this.findSelection = controller.getSelection(Ci.nsISelectionController.SELECTION_FIND);
this.findSelection.setColors("currentColor", "#ffe900", "currentColor", "#540ead");
this.findSelection.setColors("currentColor", "#ffe900", "currentColor", "#003eaa");
this.searchResultsCategory = document.getElementById("category-search-results");
this.searchInput = document.getElementById("searchInput");
@ -303,7 +303,10 @@ var gSearchResultsPane = {
this.listSearchTooltips.push(nodeObject);
}
if (nodeObject.tagName == "button" && (labelResult || valueResult || keywordsResult)) {
if ((nodeObject.tagName == "button" ||
nodeObject.tagName == "menulist" ||
nodeObject.tagName == "menuitem") &&
(labelResult || valueResult || keywordsResult)) {
nodeObject.setAttribute("highlightable", "true");
}