fune/servo/components/script/dom/webidls/Blob.webidl
Charles Vandevoorde 5dda7c7222 servo: Merge #15767 - Remove support for Blob::{close, isClosed} (from charlesvdv:blob-close); r=nox
<!-- Please describe your changes on the following line: -->

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #15660

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1b1fadb8b88eefe878617230a7b78c75a164332d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 392c282de7d711baf7c35ea75e3cdd8d3bdd79d0
2017-03-03 02:16:51 -08:00

25 lines
777 B
Text

/* 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/#blob
[Constructor(optional sequence<BlobPart> blobParts,
optional BlobPropertyBag options),
Exposed=(Window,Worker)]
interface Blob {
readonly attribute unsigned long long size;
readonly attribute DOMString type;
// slice Blob into byte-ranged chunks
Blob slice([Clamp] optional long long start,
[Clamp] optional long long end,
optional DOMString contentType);
};
dictionary BlobPropertyBag {
DOMString type = "";
};
typedef (/*ArrayBuffer or ArrayBufferView or */Blob or DOMString) BlobPart;