Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D68614
This commit is contained in:
Gijs Kruitbosch
2020-04-17 11:41:49 +00:00
parent 84a3a54635
commit 0045b2ec32
62 changed files with 77 additions and 91 deletions

View File

@@ -750,7 +750,7 @@ MarkupView.prototype = {
this._briefBoxModelPromise = new Promise(resolve => {
_resolve = resolve;
this._briefBoxModelTimer = setTimeout(() => {
this._hideBoxModel().then(resolve, resolve);
this._hideBoxModel().finally(resolve);
}, NEW_SELECTION_HIGHLIGHTER_TIMER);
});
this._briefBoxModelPromise.resolve = _resolve;