зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
39ad146eb2
Коммит
b823671288
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче