From 089f8adb41603a3e16d5c562ffa9510254b439d7 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 3 Aug 2019 22:02:46 +0200 Subject: [PATCH] fix blurring of URL bar in fx70a Mozilla removed the shim for the old way of closing the autocomplete popup in 1d51ec584c56cad54f09be093783ef843b1fc284; the new way was introduced with c324bd6eb4bf102541d3eb1b751ee2f7a408fff4 (fx64a), meaning we need to try both to support waterfox 56 as well. see also: https://bugzil.la/1528605 --- extension/lib/commands.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extension/lib/commands.coffee b/extension/lib/commands.coffee index a3ef1f8..418b3c2 100644 --- a/extension/lib/commands.coffee +++ b/extension/lib/commands.coffee @@ -1033,7 +1033,10 @@ commands.esc = ({vim}) -> # Firefox does things differently when blurring the location bar, depending on # whether the autocomplete popup is open or not. To be consistent, always # close the autocomplete popup before blurring. - vim.window.gURLBar.closePopup() + try + vim.window.gURLBar.view.close() + catch + vim.window.gURLBar.closePopup() # pre mozilla64 utils.blurActiveBrowserElement(vim) utils.getFindBar(vim.window.gBrowser).then((findBar) -> findBar.close()) -- 2.39.3