Only emit finalUpdate found-in-page events

Since Chrome 53 all meaningful results of found-in-page are finalUpdate.
This commit is contained in:
Cheng Zhao 2016-09-09 19:50:43 +09:00
parent 5ccd0a24e9
commit fbac635687
4 changed files with 11 additions and 12 deletions

View file

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