Skip to content

Commit

Permalink
[webnfc] NDEFScanOptions#mediaType being undefined means do not filter (
Browse files Browse the repository at this point in the history
#21017)

And the empty string should just match on empty.

The spec change:
w3c/web-nfc#496
w3c/web-nfc#498

BUG=520391

Change-Id: Idae55b976a6fbbdd252f6227cbe13ee50d16269c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1986632
Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Leon Han <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#728813}

Co-authored-by: Han Leon <leon.han@intel.com>
  • Loading branch information
2 people authored and stephenmcgruer committed Jan 8, 2020
1 parent a1e7a4e commit 32cb1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/chromium/nfc-mock.js
Expand Up @@ -133,7 +133,7 @@ function matchesWatchOptions(message, options) {
options.recordType !== record.recordType) {
continue;
}
if (options.mediaType !== '' && options.mediaType !== record.mediaType) {
if (options.mediaType != null && options.mediaType !== record.mediaType) {
continue;
}

Expand Down

0 comments on commit 32cb1cf

Please sign in to comment.