Skip to content

Commit 9439620

Browse files
committed
Bug 1575764 [wpt PR 18607] - Update interfaces/web-nfc.idl, a=testonly
Automatic update from web-platform-tests Update interfaces/web-nfc.idl (#18607) Source: https://github.com/tidoust/reffy-reports/blob/d705188/whatwg/idl/web-nfc.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/575189906 -- wpt-commits: c8c89cfcabc754e1affc4ff5d6b255ba7dfcfc74 wpt-pr: 18607 UltraBlame original commit: 24691e3bf5810ebcd9d1a556b43f27edc5d24679
1 parent 8d0ae90 commit 9439620

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testing/web-platform/tests/interfaces/web-nfc.idl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@ typedef DOMString NDEFRecordType;
3737

3838
typedef (DOMString or ArrayBuffer or NDEFMessageInit) NDEFMessageSource;
3939

40-
[Constructor(), SecureContext, Exposed=Window]
40+
[Constructor, SecureContext, Exposed=Window]
4141
interface NFCWriter {
4242
Promise<void> push(NDEFMessageSource message, optional NFCPushOptions options={});
4343
};
4444

45-
[Constructor(optional NFCReaderOptions options={}), SecureContext, Exposed=Window]
45+
[Constructor, SecureContext, Exposed=Window]
4646
interface NFCReader : EventTarget {
4747
attribute EventHandler onreading;
4848
attribute EventHandler onerror;
4949

50-
void start();
51-
void stop();
50+
void scan(optional NFCScanOptions options={});
5251
};
5352

5453
[Constructor(DOMString type, NFCReadingEventInit readingEventInitDict), SecureContext, Exposed=Window]
@@ -91,7 +90,8 @@ enum NFCPushTarget {
9190
"any"
9291
};
9392

94-
dictionary NFCReaderOptions {
93+
dictionary NFCScanOptions {
94+
AbortSignal? signal;
9595
USVString url = "";
9696
NDEFRecordType recordType;
9797
USVString mediaType = "";

0 commit comments

Comments
 (0)