Bug 1452343 [wpt PR 9753] - Update the FileAPI IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Mon, 09 Apr 2018 22:27:22 +0000
changeset 467318 1729ff1996d7ec2fa37729e591edf7950ccedaf1
parent 467317 50b93b65b4b0376f0d893cc4f21b9b0322f8f662
child 467319 21f189e1f5c9894fda096f7ad04b180c39ae47fa
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452343
milestone61.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 1452343 [wpt PR 9753] - Update the FileAPI IDL file, a=testonly Automatic update from web-platform-testsAdd FileAPI idl file (#9753) wpt-commits: 0cddb6844a669459eb30f0bcf175e16e38af2a54 wpt-pr: 9753 wpt-commits: 0cddb6844a669459eb30f0bcf175e16e38af2a54 wpt-pr: 9753
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/FileAPI.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -574727,17 +574727,17 @@
    "f585014db144083ee2f70f6fd65f78bf2e289093",
    "manual"
   ],
   "interfaces/BackgroundSync.idl": [
    "f4812cb04b153d5f39e12e373b184c04d29b00fd",
    "support"
   ],
   "interfaces/FileAPI.idl": [
-   "2a12d457a38d00109c0f6423bf3e3f16fcc700c9",
+   "3fb06078e603a6010c2eb0fb45715c8cbda35678",
    "support"
   ],
   "interfaces/IndexedDB.idl": [
    "3df484f3207920891c278bd99ec22e4029aa039f",
    "support"
   ],
   "interfaces/OWNERS": [
    "389275a34cb76282af66797b3cd06b72a3b9ddbe",
--- a/testing/web-platform/tests/interfaces/FileAPI.idl
+++ b/testing/web-platform/tests/interfaces/FileAPI.idl
@@ -1,44 +1,49 @@
-// https://w3c.github.io/FileAPI/#idl-index
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the FileAPI spec.
+// See https://w3c.github.io/FileAPI/
 
-[Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag options),
-Exposed=(Window,Worker)]
+[Constructor(optional sequence<BlobPart> blobParts,
+             optional BlobPropertyBag options),
+ Exposed=(Window,Worker), Serializable]
 interface Blob {
 
   readonly attribute unsigned long long size;
   readonly attribute DOMString type;
 
-  //slice Blob into byte-ranged chunks
-
+  // slice Blob into byte-ranged chunks
   Blob slice([Clamp] optional long long start,
             [Clamp] optional long long end,
             optional DOMString contentType);
 };
 
+enum EndingType { "transparent", "native" };
+
 dictionary BlobPropertyBag {
   DOMString type = "";
+  EndingType endings = "transparent";
 };
 
 typedef (BufferSource or Blob or USVString) BlobPart;
 
 [Constructor(sequence<BlobPart> fileBits,
-            [EnsureUTF16] DOMString fileName,
-            optional FilePropertyBag options),
-Exposed=(Window,Worker)]
+             USVString fileName,
+             optional FilePropertyBag options),
+ Exposed=(Window,Worker), Serializable]
 interface File : Blob {
   readonly attribute DOMString name;
   readonly attribute long long lastModified;
 };
 
 dictionary FilePropertyBag : BlobPropertyBag {
   long long lastModified;
 };
 
-[Exposed=(Window,Worker)]
+[Exposed=(Window,Worker), Serializable]
 interface FileList {
   getter File? item(unsigned long index);
   readonly attribute unsigned long length;
 };
 
 [Constructor, Exposed=(Window,Worker)]
 interface FileReader: EventTarget {
 
@@ -50,17 +55,16 @@ interface FileReader: EventTarget {
 
   void abort();
 
   // states
   const unsigned short EMPTY = 0;
   const unsigned short LOADING = 1;
   const unsigned short DONE = 2;
 
-
   readonly attribute unsigned short readyState;
 
   // File or Blob data
   readonly attribute (DOMString or ArrayBuffer)? result;
 
   readonly attribute DOMException? error;
 
   // event handler content attributes
@@ -68,17 +72,17 @@ interface FileReader: EventTarget {
   attribute EventHandler onprogress;
   attribute EventHandler onload;
   attribute EventHandler onabort;
   attribute EventHandler onerror;
   attribute EventHandler onloadend;
 
 };
 
-[Constructor, Exposed=Worker]
+[Constructor, Exposed=(DedicatedWorker,SharedWorker)]
 interface FileReaderSync {
   // Synchronously return strings
 
   ArrayBuffer readAsArrayBuffer(Blob blob);
   DOMString readAsBinaryString(Blob blob);
   DOMString readAsText(Blob blob, optional DOMString label);
   DOMString readAsDataURL(Blob blob);
 };