* Rewrite constructors of `Blob` and `File` with `DataSlice` as argument * Update WebIDL of `Blob` and `File` * Implement missing interfaces of `File` (However, due to lack of working `ArrayBuffer/ArrayBufferView` in `Blob`, so it still differs from spec) * Update WPT test `File-constructor.html` Source-Repo: https://github.com/servo/servo Source-Revision: 392135bd0c2f512a0d632a7d76e667bc9af8f4a7
19 lines
581 B
Plaintext
19 lines
581 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://w3c.github.io/FileAPI/#file
|
|
|
|
[Constructor(sequence<BlobPart> fileBits,
|
|
DOMString fileName,
|
|
optional FilePropertyBag options),
|
|
Exposed=Window/*,Worker*/]
|
|
interface File : Blob {
|
|
readonly attribute DOMString name;
|
|
readonly attribute long long lastModified;
|
|
};
|
|
|
|
dictionary FilePropertyBag : BlobPropertyBag {
|
|
long long lastModified;
|
|
};
|