aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/fetch.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-05-18 10:45:00 +0200
committerGitHub <noreply@github.com>2023-05-18 10:45:00 +0200
commit918557ad6d04cd2bd73516e9ccb9019bdaa53500 (patch)
tree340f02256191bbbbb592bfe257f2acfe3dc4b984 /components/script/fetch.rs
parentc7f8a6ecb5e55db86b0524bf7bcbe7cd842b1e9f (diff)
parented239931bb476af4fac5b8649ca2ef40ca1bc0eb (diff)
downloadservo-918557ad6d04cd2bd73516e9ccb9019bdaa53500.tar.gz
servo-918557ad6d04cd2bd73516e9ccb9019bdaa53500.zip
Auto merge of #29752 - mrobinson:fix-29741-by-extending-request-builder, r=mukilan
Fix 29741 by extending request builder Extend RequestBuilder to include ResponseTainting and used said functionality to set response_tainting to `::CorsTainting` in `cors_preflight_fetch()`. --- <!-- 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 #29741 <!-- 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. -->
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r--components/script/fetch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs
index 9aaeb204245..4889d6f138c 100644
--- a/components/script/fetch.rs
+++ b/components/script/fetch.rs
@@ -127,6 +127,7 @@ fn request_init_from_request(request: NetTraitsRequest) -> RequestBuilder {
initiator: request.initiator,
csp_list: None,
https_state: request.https_state,
+ response_tainting: request.response_tainting,
}
}