зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1617696 - Stop splitting address bar expansion between _on_focus and _on_click. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D63930 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5f656bfdd1
Коммит
a4416cc4d9
|
@ -1775,7 +1775,6 @@ class UrlbarInput {
|
|||
event.target == this._inputContainer ||
|
||||
event.target.id == SEARCH_BUTTON_ID
|
||||
) {
|
||||
this.startLayoutExtend();
|
||||
this._maybeSelectAll();
|
||||
}
|
||||
}
|
||||
|
@ -1796,15 +1795,13 @@ class UrlbarInput {
|
|||
this.setAttribute("focused", "true");
|
||||
}
|
||||
|
||||
// We handle mouse-based expansion events separately in _on_click.
|
||||
this.startLayoutExtend();
|
||||
|
||||
if (this.focusedViaMousedown) {
|
||||
this.view.autoOpen({ event });
|
||||
} else {
|
||||
this.startLayoutExtend();
|
||||
if (this.inputField.hasAttribute("refocused-by-panel")) {
|
||||
} else if (this.inputField.hasAttribute("refocused-by-panel")) {
|
||||
this._maybeSelectAll(true);
|
||||
}
|
||||
}
|
||||
|
||||
this._updateUrlTooltip();
|
||||
this.formatValue();
|
||||
|
|
Загрузка…
Ссылка в новой задаче