Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updon't send progress event for empty blob #24312
Conversation
highfive
commented
Sep 28, 2019
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @jdm (or someone else) soon. |
highfive
commented
Sep 28, 2019
|
Heads up! This PR modifies the following files:
|
| @@ -1,9 +1,9 @@ | |||
| [filereader_events.any.html] | |||
| [events are dispatched in the correct order for an empty blob] | |||
| expected: FAIL | |||
| expected: PASS | |||
This comment has been minimized.
This comment has been minimized.
aeba242
to
ef3f7c2
| @@ -491,7 +497,7 @@ fn perform_annotated_read_operation( | |||
| let task = FileReadingTask::ProcessRead(filereader.clone(), gen_id); | |||
| task_source.queue_with_canceller(task, &canceller).unwrap(); | |||
|
|
|||
| let task = FileReadingTask::ProcessReadData(filereader.clone(), gen_id); | |||
| let task = FileReadingTask::ProcessReadData(filereader.clone(), gen_id, blob_contents.clone()); | |||
This comment has been minimized.
This comment has been minimized.
jdm
Sep 30, 2019
Member
I suggest instead of passing the blob_contents to this task, we check whether blob_contents is empty and skip it entirely. This will make many of the other changes in this PR unnecessary.
ef3f7c2
to
fbf7293
|
@bors-servo try=wpt |
don't send progress event for empty blob <!-- 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 #24289 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24312) <!-- Reviewable:end -->
|
|
|
Hooray, new passing tests! You can remove this file and add the change to the existing commit in this PR. |
fbf7293
to
6735b68
|
@bors-servo r+ |
|
|
don't send progress event for empty blob <!-- 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 #24289 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24312) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
don't send progress event for empty blob <!-- 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 #24289 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24312) <!-- Reviewable:end -->
|
|
SiddharthaMishra commentedSep 28, 2019
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is