aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-09 18:36:38 -0800
committerGitHub <noreply@github.com>2017-01-09 18:36:38 -0800
commitf1c82be0e61df679db25199ac3e7afc4be5d141f (patch)
treea9ca7339aadec0dc31b5bb24d6655814172300a1 /components/net_traits/lib.rs
parent2a2a89b7e401e72a4d8d6199c483d7ab09ff5c1e (diff)
parent0f1eb13e3303e19841650a5c0c8e49a8f64abda5 (diff)
downloadservo-f1c82be0e61df679db25199ac3e7afc4be5d141f.tar.gz
servo-f1c82be0e61df679db25199ac3e7afc4be5d141f.zip
Auto merge of #14868 - bd339:iss14068, r=jdm
Fix loss of response type information in Fetch API <!-- Please describe your changes on the following line: --> Avoids mapping response types that are distinct according to [the spec](https://fetch.spec.whatwg.org/#concept-response-type) to fewer response types. Also updates test expectations to match that we now pass tests that check the response type. --- <!-- 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 #14068 <!-- Either: --> - [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/14868) <!-- Reviewable:end -->
Diffstat (limited to 'components/net_traits/lib.rs')
-rw-r--r--components/net_traits/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs
index e20d856a113..5ba5f61e3c7 100644
--- a/components/net_traits/lib.rs
+++ b/components/net_traits/lib.rs
@@ -172,8 +172,10 @@ pub trait FetchTaskTarget {
#[derive(Serialize, Deserialize)]
pub enum FilteredMetadata {
+ Basic(Metadata),
+ Cors(Metadata),
Opaque,
- Transparent(Metadata),
+ OpaqueRedirect
}
#[derive(Serialize, Deserialize)]