From 4c2c388cdda0b4f6269d993ce9f199b1310e28f3 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 6 Jan 2016 14:07:17 -0800 Subject: [PATCH] Bug 1233727 - Don't show found-matches label when it's empty [r=mikedeboer] --- toolkit/content/widgets/findbar.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolkit/content/widgets/findbar.xml b/toolkit/content/widgets/findbar.xml index a7803c03e373..296c0d7b2ccc 100644 --- a/toolkit/content/widgets/findbar.xml +++ b/toolkit/content/widgets/findbar.xml @@ -829,13 +829,15 @@ let nodes = this.getElement("findbar-container").childNodes; let wrapper = this.getElement("findbar-textbox-wrapper"); + let foundMatches = this._foundMatches; for (let node of nodes) { - if (node == wrapper) + if (node == wrapper || node == foundMatches) continue; node.hidden = showMinimalUI; } this.getElement("find-next").hidden = this.getElement("find-previous").hidden = showMinimalUI; + foundMatches.hidden = showMinimalUI || !foundMatches.value; this._updateCaseSensitivity(); if (showMinimalUI)