Repository navigation
Put Blob URL online - #12440
Put Blob URL online#12440
Conversation
|
Heads up! This PR modifies the following files:
|
|
Still WIP, welcome comments! (esp. about "long-live") |
| let _ = sender.send(Err(BlobURLStoreError::InvalidOrigin)); | ||
| } | ||
| // Check origin format correctness | ||
| if Url::parse(&origin).is_ok() || origin == "file://" { |
There was a problem hiding this comment.
Why do we have a separate check for file://?
There was a problem hiding this comment.
Because Url::parse is not happy with an origin equal to file://. It is kinda a hack (related to get_blob_origin, parse_blob_url etc. as well)
|
One small issue, then update test expectations, and should be good to go. |
|
@bors-servo try There should be some new tests passing |
Put Blob URL online This PR connects the resource requests with file manager thread, including: + `script_thread` load request + `image_cache_thread` load request + XHR load request (the responding part code yet not implemented due to unfamiliarity with fetch standard, but the infra is here) One notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html. r? @Manishearth <!-- 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 #10539 - [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. --> <!-- 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/12440) <!-- Reviewable:end -->
|
@Manishearth Actually I first thought it will send the Payload for me and didn't write that line code. Should I file an issue on this potentially misleading naming? |
|
💔 Test failed - linux-dev |
|
@bors-servo try I fixed up the test-unit |
Put Blob URL online This PR connects the resource requests with file manager thread, including: + `script_thread` load request + `image_cache_thread` load request + XHR load request (the responding part code yet not implemented due to unfamiliarity with fetch standard, but the infra is here) One notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html. r? @Manishearth <!-- 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 #10539 - [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. --> <!-- 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/12440) <!-- Reviewable:end -->
|
💔 Test failed - linux-dev |
|
@bors-servo try Fixed tidy (Feeling like homu would come to GMT 0800 and bite me) |
Put Blob URL online This PR connects the resource requests with file manager thread, including: + `script_thread` load request + `image_cache_thread` load request + XHR load request (the responding part code yet not implemented due to unfamiliarity with fetch standard, but the infra is here) One notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html. r? @Manishearth <!-- 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 #10539 - [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. --> <!-- 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/12440) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
@bors-servo try WPT tests updated |
Put Blob URL online This PR connects the resource requests with file manager thread, including: + `script_thread` load request + `image_cache_thread` load request + XHR load request (the responding part code yet not implemented due to unfamiliarity with fetch standard, but the infra is here) One notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html. r? @Manishearth <!-- 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 #10539 - [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. --> <!-- 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/12440) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
@bors-servo r+ Now that most of the functionality exists, could you go through the list of tests that still fail and ensure that there aren't any tests there that shouldn't be (tests which should pass in Servo but fail)? I'm a bit concerned by the small number of fixed tests in each PR, but it looks like WPT has very few File tests to begin with 😄 so I don't think that's due to imperfections in your changes. Perhaps we should add more. |
|
📌 Commit fdc3a8e has been approved by |
Put Blob URL online This PR connects the resource requests with file manager thread, including: + `script_thread` load request + `image_cache_thread` load request + XHR load request (the responding part code yet not implemented due to unfamiliarity with fetch standard, but the infra is here) One notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html. r? @Manishearth <!-- 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 #10539 - [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. --> <!-- 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/12440) <!-- Reviewable:end -->
|
@Manishearth as I peeked a few days ago, most of the failed tests are due to |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
Would be great to explain why the file manager now needs to be passed to |
This PR connects the resource requests with file manager thread, including:
script_threadload requestimage_cache_threadload requestOne notable change is the introduction of "long-live validity", to handle the case specified in WPT test FileAPI/blob/Blob-XHR-revoke.html.
r? @Manishearth
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is