зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393483 - Correctly pass cancel token to _onResultRow. r=mak
This commit is contained in:
Родитель
d96b3aa550
Коммит
0c65735985
|
@ -1380,9 +1380,9 @@ Search.prototype = {
|
|||
// like a URL, then we'll probably have a result.
|
||||
let gotResult = false;
|
||||
let [ query, params ] = this._urlQuery;
|
||||
await conn.executeCached(query, params, row => {
|
||||
await conn.executeCached(query, params, (row, cancel) => {
|
||||
gotResult = true;
|
||||
this._onResultRow(row);
|
||||
this._onResultRow(row, cancel);
|
||||
});
|
||||
return gotResult;
|
||||
}
|
||||
|
@ -1391,9 +1391,9 @@ Search.prototype = {
|
|||
|
||||
let gotResult = false;
|
||||
let [ query, params ] = this._hostQuery;
|
||||
await conn.executeCached(query, params, row => {
|
||||
await conn.executeCached(query, params, (row, cancel) => {
|
||||
gotResult = true;
|
||||
this._onResultRow(row);
|
||||
this._onResultRow(row, cancel);
|
||||
});
|
||||
return gotResult;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче