mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision e9f2d000237d43f74136cfd40e5a3454f5b54b70
This commit is contained in:
parent
8bc8981ae5
commit
57465056e7
127 changed files with 18346 additions and 155 deletions
|
@ -340,13 +340,17 @@ var WebNFCTest = (() => {
|
|||
setReadingMessage(message, compatibility = 'nfc-forum') {
|
||||
this.reading_messages_.push({message: message,
|
||||
compatibility: toMojoNDEFCompatibility(compatibility)});
|
||||
// Ignore reading if NFCPushOptions.ignoreRead is true
|
||||
let ignoreRead = false;
|
||||
if(this.push_options_ && this.push_options_.ignoreRead)
|
||||
ignoreRead = this.push_options_.ignoreRead;
|
||||
// Triggers onWatch if the new message matches existing watchers
|
||||
for (let watcher of this.watchers_) {
|
||||
if (matchesWatchOptions(
|
||||
message, message.compatibility, watcher.options)) {
|
||||
if (!ignoreRead && matchesWatchOptions(
|
||||
message, toMojoNDEFCompatibility(compatibility), watcher.options)) {
|
||||
this.client_.onWatch(
|
||||
[watcher.id], fake_tag_serial_number,
|
||||
toMojoNDEFMessage(message.message));
|
||||
toMojoNDEFMessage(message));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue