Only emit finalUpdate found-in-page events
Since Chrome 53 all meaningful results of found-in-page are finalUpdate.
This commit is contained in:
parent
5ccd0a24e9
commit
fbac635687
4 changed files with 11 additions and 12 deletions
|
@ -783,7 +783,6 @@ describe('<webview> tag', function () {
|
|||
let requestId = null
|
||||
let activeMatchOrdinal = []
|
||||
const listener = function (e) {
|
||||
if (!e.result.finalUpdate) return
|
||||
assert.equal(e.result.requestId, requestId)
|
||||
assert.equal(e.result.matches, 3)
|
||||
activeMatchOrdinal.push(e.result.activeMatchOrdinal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue