mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove support for Blob::{close, isClosed}
This commit is contained in:
parent
050d9d9097
commit
44e05e224c
5 changed files with 5 additions and 59 deletions
|
@ -375,20 +375,11 @@ impl FileReader {
|
|||
if self.ready_state.get() == FileReaderReadyState::Loading {
|
||||
return Err(Error::InvalidState);
|
||||
}
|
||||
|
||||
// Step 2
|
||||
let global = self.global();
|
||||
if blob.IsClosed() {
|
||||
let exception = DOMException::new(&global, DOMErrorName::InvalidStateError);
|
||||
self.error.set(Some(&exception));
|
||||
|
||||
self.dispatch_progress_event(atom!("error"), 0, None);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
// Step 3
|
||||
self.change_ready_state(FileReaderReadyState::Loading);
|
||||
|
||||
// Step 4
|
||||
// Step 3
|
||||
let blob_contents = Arc::new(blob.get_bytes().unwrap_or(vec![]));
|
||||
|
||||
let type_ = blob.Type();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue