Bug 1369305 - Do not show a tooltip for the button will not open sub-dialog.
MozReview-Commit-ID: 27bnOCJrhRI
--- a/browser/components/preferences/in-content-new/findInPage.js
+++ b/browser/components/preferences/in-content-new/findInPage.js
@@ -294,29 +294,19 @@ var gSearchResultsPane = {
}
// Access key are presented
let complexTextNodesResult = this.highlightMatches(accessKeyTextNodes, nodeSizes, allNodeText.toLowerCase(), searchPhrase);
// Searching some elements, such as xul:button, have a 'label' attribute that contains the user-visible text.
let labelResult = this.stringMatchesFilters(nodeObject.getAttribute("label"), searchPhrase);
- // Creating tooltips for buttons
- if (labelResult && nodeObject.tagName === "button") {
- this.listSearchTooltips.push(nodeObject);
- }
-
// Searching some elements, such as xul:label, store their user-visible text in a "value" attribute.
let valueResult = this.stringMatchesFilters(nodeObject.getAttribute("value"), searchPhrase);
- // Creating tooltips for buttons
- if (valueResult && nodeObject.tagName === "button") {
- this.listSearchTooltips.push(nodeObject);
- }
-
// Searching some elements, such as xul:button, buttons to open subdialogs.
let keywordsResult = this.stringMatchesFilters(nodeObject.getAttribute("searchkeywords"), searchPhrase);
// Creating tooltips for buttons
if (keywordsResult && nodeObject.tagName === "button") {
this.listSearchTooltips.push(nodeObject);
}