зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1524510 - Freeze quantum bar results when the user interacts with them. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25222 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1380d5ef8d
Коммит
cb2ec13acb
|
@ -36,8 +36,8 @@ class UrlbarView {
|
|||
this._mainContainer = this.panel.querySelector(".urlbarView-body-inner");
|
||||
this._rows = this.panel.querySelector("#urlbarView-results");
|
||||
|
||||
this._rows.addEventListener("mouseup", this);
|
||||
this._rows.addEventListener("mousedown", this);
|
||||
this._rows.addEventListener("mouseup", this);
|
||||
|
||||
// For the horizontal fade-out effect, set the overflow attribute on result
|
||||
// rows when they overflow.
|
||||
|
@ -140,6 +140,9 @@ class UrlbarView {
|
|||
throw new Error("UrlbarView: Cannot select an item if the view isn't open.");
|
||||
}
|
||||
|
||||
// Freeze results as the user is interacting with them.
|
||||
this.controller.cancelQuery();
|
||||
|
||||
let row = this._selected;
|
||||
|
||||
if (!row) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче