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:
Dão Gottwald 2019-03-29 10:39:34 +00:00
Родитель 1380d5ef8d
Коммит cb2ec13acb
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -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) {