Repository navigation
M1504: Implement basic support for withCredentials API - #8812
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon. |
There was a problem hiding this comment.
This should probably take an &LoadData so we don't have to clone it. Alternatively, just pass in include_third_party_credentials directly
|
Thanks for the PR! I think we need some minor changes and some spec links here, otherwise it looks good to me! (Let me know if you're having trouble with the spec) |
|
I missed one step from the spec which is important here (but a straightforward fix!): in https://fetch.spec.whatwg.org/#concept-http-network-fetch step 9, we need to avoid setting cookies if the credentials flag is false. That corresponds to |
54a09c7 to
ce3c9ff
Compare
|
@jdm We have implemented all the suggested changes in addition to the missing step. However as we talked earlier, I am still getting an assertion error due to unmatched Content-Type and the test case /XMLHttpRequest/send-entity-body-document.htm fails. |
|
@jigesh-mehta I tried your changes locally and do not see that error, so I'm going to move ahead with this PR as if you do not see that error :) |
|
@bors-servo: r+ Reviewed 4 of 4 files at r2. Comments from the review on Reviewable.io |
|
📌 Commit ce3c9ff has been approved by |
|
⌛ Testing commit ce3c9ff with merge 217a55a... |
M1504: Implement basic support for withCredentials API The pull request includes the following task: * Implemented basic network-level support by adding a member to LoadData that is used by http_loader.rs to conditionally exclude cookies from the HTTP request if the flag is false (default true) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8812) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
The pull request includes the following task: