From e3accd0c0142de984879bd4ccfba526904c32b11 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 19 Apr 2018 00:19:39 +0200 Subject: [PALEMOON] URL/Address/Location bar - suggestions in location bar cannot be hidden by clicking dropmarker again https://github.com/MoonchildProductions/Pale-Moon/pull/1382 --- application/palemoon/base/content/autocomplete.xml | 28 +++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/application/palemoon/base/content/autocomplete.xml b/application/palemoon/base/content/autocomplete.xml index 9291b205b..bd0928436 100644 --- a/application/palemoon/base/content/autocomplete.xml +++ b/application/palemoon/base/content/autocomplete.xml @@ -404,7 +404,10 @@ null false + false @@ -883,6 +887,9 @@ extends="chrome://global/content/bindings/popup.xml#popup"> + + this.removeAttribute("autocompleteinput"); this.mPopupOpen = false; + // Prevent opening popup from historydropmarker mousedown handler + // on the same event tick the popup is hidden by the same mousedown + // event. + this.mIsPopupHidingTick = true; + setTimeout(() => { + this.mIsPopupHidingTick = false; + }, 0); + // Reset the maxRows property to the cached "normal" value, and reset // _normalMaxRows so that we can detect whether it was set by the input // when the popupshowing handler runs. @@ -2103,18 +2118,9 @@ extends="chrome://global/content/bindings/popup.xml#popup"> - - - - - - -- cgit v1.2.3