mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
don't send progress event for empty blob
This commit is contained in:
parent
b34fc13eee
commit
6735b68a00
2 changed files with 4 additions and 11 deletions
|
@ -494,8 +494,10 @@ fn perform_annotated_read_operation(
|
||||||
let task = FileReadingTask::ProcessRead(filereader.clone(), gen_id);
|
let task = FileReadingTask::ProcessRead(filereader.clone(), gen_id);
|
||||||
task_source.queue_with_canceller(task, &canceller).unwrap();
|
task_source.queue_with_canceller(task, &canceller).unwrap();
|
||||||
|
|
||||||
|
if !blob_contents.is_empty() {
|
||||||
let task = FileReadingTask::ProcessReadData(filereader.clone(), gen_id);
|
let task = FileReadingTask::ProcessReadData(filereader.clone(), gen_id);
|
||||||
task_source.queue_with_canceller(task, &canceller).unwrap();
|
task_source.queue_with_canceller(task, &canceller).unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
let task = FileReadingTask::ProcessReadEOF(filereader, gen_id, data, blob_contents);
|
let task = FileReadingTask::ProcessReadEOF(filereader, gen_id, data, blob_contents);
|
||||||
task_source.queue_with_canceller(task, &canceller).unwrap();
|
task_source.queue_with_canceller(task, &canceller).unwrap();
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[filereader_events.any.html]
|
|
||||||
[events are dispatched in the correct order for an empty blob]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
||||||
[filereader_events.any.worker.html]
|
|
||||||
[events are dispatched in the correct order for an empty blob]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue