Repository navigation
(WIP) Make fetch happen - #11439
(WIP) Make fetch happen#11439Manishearth wants to merge 6 commits into
Conversation
|
Heads up! This PR modifies the following files:
|
|
I suggest trying to get the unit tests working. That should give us a good idea about where your design is headed. |
| UseCredentials | ||
| } | ||
|
|
||
| pub trait FetchTaskTarget { |
There was a problem hiding this comment.
I would arguably put this in net_traits/lib.rs, use net_traits::request::FetchTaskTarget doesn't quite appeal to me.
1e3e246 to
fe71d4a
Compare
|
New code was committed to pull request. |
|
Tests work now (there was a minor issue where it hangs on network errors, fixed and moved the channel creation to a point where there never will be a channel if there's nothing to block on) |
fe71d4a to
090e5a6
Compare
|
New code was committed to pull request. |
|
Doesn't build :) |
090e5a6 to
59978fb
Compare
|
New code was committed to pull request. |
|
-S-awaiting-review +S-needs-code-changes
|
59978fb to
f859b94
Compare
|
New code was committed to pull request. |
|
☔ The latest upstream changes (presumably #11472) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I still haven't thought hard about what waiting on the channel means, so leaving the awaiting-review label.
|
|
Reviewed 1 of 1 files at r3. components/net/fetch/methods.rs, line 261 [r2] (raw file):
|
f859b94 to
da02b00
Compare
831cbfe to
c10f00f
Compare
|
Most tests seem to pass, but I'm getting timeouts (which I'll go through tomorrow) |
23f8334 to
f3aeb68
Compare
|
Sync seems to work now, though we still have behavior-related test failures Ran 198 tests finished in 114.0 seconds. |
677522f to
a9accf7
Compare
a9accf7 to
2586721
Compare
- Hack to stop hitting unreachable on referer - add fetch_done to make sync work - Make datauris work by setting the response URI, spec bug - Allow for empty bodies - Make request bodies work (pass to http, fix fencepost in iter count)
2586721 to
4bb80b1
Compare
Make fetch happen <!-- Please describe your changes on the following line: --> Moves XHR over to the fetch backend. Previous PR: #11439 (recreated to get a fresh reviewable page) Doesn't yet pass all tests, mostly ready for review --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors (Will fix later) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11556) <!-- Reviewable:end -->
Make fetch happen <!-- Please describe your changes on the following line: --> Moves XHR over to the fetch backend. Previous PR: #11439 (recreated to get a fresh reviewable page) Doesn't yet pass all tests, mostly ready for review --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors (Will fix later) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11556) <!-- Reviewable:end -->
Make fetch happen <!-- Please describe your changes on the following line: --> Moves XHR over to the fetch backend. Previous PR: #11439 (recreated to get a fresh reviewable page) Doesn't yet pass all tests, mostly ready for review --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors (Will fix later) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11556) <!-- Reviewable:end -->
Make fetch happen <!-- Please describe your changes on the following line: --> Moves XHR over to the fetch backend. Previous PR: #11439 (recreated to get a fresh reviewable page) Doesn't yet pass all tests, mostly ready for review --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors (Will fix later) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11556) <!-- Reviewable:end -->
This adds a FetchTaskTarget, but doesn't use it yet. Further commits will make
XHR use the fetch task target.
@jdm thoughts so far?
This change is