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 up(WIP) Make fetch happen #11439
(WIP) Make fetch happen #11439
Conversation
highfive
commented
May 26, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 26, 2016
|
I suggest trying to get the unit tests working. That should give us a good idea about where your design is headed. |
| @@ -106,6 +107,25 @@ pub enum CORSSettings { | |||
| UseCredentials | |||
| } | |||
|
|
|||
| pub trait FetchTaskTarget { | |||
This comment has been minimized.
This comment has been minimized.
KiChjang
May 26, 2016
Member
I would arguably put this in net_traits/lib.rs, use net_traits::request::FetchTaskTarget doesn't quite appeal to me.
1e3e246
to
fe71d4a
highfive
commented
May 27, 2016
|
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
highfive
commented
May 27, 2016
|
New code was committed to pull request. |
|
Doesn't build :) |
090e5a6
to
59978fb
highfive
commented
May 27, 2016
|
New code was committed to pull request. |
|
-S-awaiting-review +S-needs-code-changes
|
59978fb
to
f859b94
highfive
commented
May 27, 2016
|
New code was committed to pull request. |
|
|
|
I still haven't thought hard about what waiting on the channel means, so leaving the awaiting-review label.
|
|
Review status: 2 of 5 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. components/net/fetch/methods.rs, line 260 [r1] (raw file):
|
|
Reviewed 1 of 1 files at r3. components/net/fetch/methods.rs, line 261 [r2] (raw file):
|
f859b94
to
da02b00
831cbfe
to
c10f00f
|
Most tests seem to pass, but I'm getting timeouts (which I'll go through tomorrow)
|
8788dd9
to
d7a6279
23f8334
to
f3aeb68
|
Sync seems to work now, though we still have behavior-related test failures http://hastebin.com/lixazoyowo.txt Ran 198 tests finished in 114.0 seconds. |
677522f
to
a9accf7
|
Now at http://hastebin.com/lequyacuzi.txt, 3 tests fixed |
a9accf7
to
2586721
- 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
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 -->
Manishearth commentedMay 26, 2016
•
edited by larsbergstrom
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