Auto merge of #21187 - tigercosmos:fetch, r=jdm

Make fetch() API use same-origin credentials by default

<!-- 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 #21146 (github issue number if applicable).

<!-- Either: -->
- [ ] 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/21187)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-07-16 22:46:30 -04:00 committed by GitHub
commit a69c117da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 8 deletions

View file

@ -106,7 +106,7 @@ impl Request {
// Step 5.5
fallback_mode = Some(NetTraitsRequestMode::CorsMode);
// Step 5.6
fallback_credentials = Some(NetTraitsRequestCredentials::Omit);
fallback_credentials = Some(NetTraitsRequestCredentials::CredentialsSameOrigin);
}
// Step 6
RequestInfo::Request(ref input_request) => {

View file

@ -1,4 +0,0 @@
[request-init-003.sub.html]
[Check request values when initialized from url string]
expected: FAIL

View file

@ -1,7 +1,4 @@
[request-structure.html]
[Check credentials attribute]
expected: FAIL
[Check isReloadNavigation attribute]
expected: FAIL