From b823671288a9cb873b57a133fd000d2319b6efec Mon Sep 17 00:00:00 2001 From: Harry Twyford Date: Fri, 27 Sep 2019 11:00:06 +0000 Subject: [PATCH] Bug 1583993 - Check the focused attribute in startLayoutExtend and endLayoutExtend. r=dao Differential Revision: https://phabricator.services.mozilla.com/D47262 --HG-- extra : moz-landing-system : lando --- browser/components/urlbar/UrlbarInput.jsm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/components/urlbar/UrlbarInput.jsm b/browser/components/urlbar/UrlbarInput.jsm index 8a0fc9fd3c87..d2afb9fa5c3b 100644 --- a/browser/components/urlbar/UrlbarInput.jsm +++ b/browser/components/urlbar/UrlbarInput.jsm @@ -980,7 +980,8 @@ class UrlbarInput { !this.hasAttribute("breakout") || this.hasAttribute("breakout-extend") || !( - (this.focused && !this.textbox.classList.contains("hidden-focus")) || + (this.getAttribute("focused") == "true" && + !this.textbox.classList.contains("hidden-focus")) || this.view.isOpen ) ) { @@ -1004,7 +1005,8 @@ class UrlbarInput { !this.hasAttribute("breakout-extend") || (!force && (this.view.isOpen || - (this.focused && !this.textbox.classList.contains("hidden-focus")))) + (this.getAttribute("focused") == "true" && + !this.textbox.classList.contains("hidden-focus")))) ) { return; }