Bug 1529810 [wpt PR 15427] - Update interfaces/web-nfc.idl, a=testonly
☠☠ backed out by 66b1aba3fb43 ☠ ☠
authorautofoolip <auto@foolip.org>
Wed, 06 Mar 2019 12:33:22 +0000
changeset 464306 62fe727988a6cf072a39f919a1e05d99d7e8feef
parent 464305 8592c05fe03149e521d61310389469eecc4ea7fd
child 464307 2c7bf50257aff4d7761be5af0c78789267e3e1c7
push id35713
push usercbrindusan@mozilla.com
push dateFri, 15 Mar 2019 21:55:43 +0000
treeherdermozilla-central@66b1aba3fb43 [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";
 };