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
This commit is contained in:
Harry Twyford 2019-09-27 11:00:06 +00:00
Родитель 39ad146eb2
Коммит b823671288
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;
}