Bug 1529810 [wpt PR 15427] - Update interfaces/web-nfc.idl, a=testonly
authorautofoolip <auto@foolip.org>
Wed, 06 Mar 2019 12:33:22 +0000
changeset 464640 c5bd3dc78b58810100682dad5ccd46b2aed68641
parent 464639 6d7a636b53c9cb55be8630ca1ae34c2421cbcec4
child 464641 5fcf15c3c730e29f844986f09e3f569a7dac24d9
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1529810, 15427
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1529810 [wpt PR 15427] - Update interfaces/web-nfc.idl, a=testonly Automatic update from web-platform-tests Update interfaces/web-nfc.idl (#15427) Source: https://github.com/tidoust/reffy-reports/blob/9c32f49/whatwg/idl/web-nfc.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/494128798 -- wpt-commits: eadb35a85e995c845d20720c1d3310248a2554f3 wpt-pr: 15427
testing/web-platform/tests/interfaces/web-nfc.idl
--- a/testing/web-platform/tests/interfaces/web-nfc.idl
+++ b/testing/web-platform/tests/interfaces/web-nfc.idl
@@ -1,78 +1,86 @@
 // GENERATED CONTENT - DO NOT EDIT
 // Content was automatically extracted by Reffy into reffy-reports
 // (https://github.com/tidoust/reffy-reports)
 // Source: Web NFC API (https://w3c.github.io/web-nfc/)
 
-dictionary NFCMessage {
-  sequence<NFCRecord> records;
+dictionary NDEFMessage {
+  sequence<NDEFRecord> records;
   USVString url;
 };
 
-typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NFCRecordData;
+typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NDEFRecordData;
 
-dictionary NFCRecord {
-  NFCRecordType recordType;
+dictionary NDEFRecord {
+  NDEFRecordType recordType;
   USVString mediaType;
-  NFCRecordData data;
+  NDEFRecordData data;
 };
 
-enum NFCRecordType {
+enum NDEFRecordType {
   "empty",
   "text",
   "url",
   "json",
   "opaque"
 };
 
-typedef (DOMString or ArrayBuffer or NFCMessage) NFCMessageSource;
+typedef (DOMString or ArrayBuffer or NDEFMessage) NDEFMessageSource;
 
 [Constructor(), SecureContext, Exposed=Window]
 interface NFCWriter {
-  Promise<void> push(NFCMessageSource message, optional NFCPushOptions options);
+  Promise<void> push(NDEFMessageSource message, optional NFCPushOptions options);
 };
 
 [Constructor(optional NFCReaderOptions options), SecureContext, Exposed=Window]
 interface NFCReader : EventTarget {
   attribute EventHandler onreading;
   attribute EventHandler onerror;
 
   void start();
   void stop();
 };
 
 [Constructor(DOMString type, NFCReadingEventInit readingEventInitDict), SecureContext, Exposed=Window]
 interface NFCReadingEvent : Event {
-  readonly attribute NFCMessage message;
+  readonly attribute NDEFMessage message;
 };
 
 dictionary NFCReadingEventInit : EventInit {
-  required NFCMessage message;
+  required NDEFMessage message;
 };
 
 [Constructor(DOMString type, NFCErrorEventInit errorEventInitDict), SecureContext, Exposed=Window]
 interface NFCErrorEvent : Event {
   readonly attribute DOMException error;
 };
 
 dictionary NFCErrorEventInit : EventInit {
   required DOMException error;
 };
 
+enum NDEFCompatibility {
+  "nfc-forum",
+  "vendor",
+  "any"
+};
+
 dictionary NFCPushOptions {
   NFCPushTarget target = "any";
   unrestricted double timeout = Infinity;
   boolean ignoreRead = true;
   AbortSignal? signal;
+  NDEFCompatibility compatibility = "nfc-forum";
 };
 
 enum NFCPushTarget {
   "tag",
   "peer",
   "any"
 };
 
 dictionary NFCReaderOptions {
   USVString url = "";
-  NFCRecordType recordType;
+  NDEFRecordType recordType;
   USVString mediaType = "";
+  NDEFCompatibility compatibility = "nfc-forum";
 };