diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-03-20 17:00:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 17:00:55 -0400 |
commit | 5ce2fd0882860641b2affe16607f2dee83a1851f (patch) | |
tree | babeda29b0eaca4bd511125c20faa15f98bbd4e3 /components/script | |
parent | 7ef4c65ac32071612ba2981d6fb5a6b2431c205d (diff) | |
parent | 6b0b90767e461ee133146798a3a6b2fce45e3e68 (diff) | |
download | servo-5ce2fd0882860641b2affe16607f2dee83a1851f.tar.gz servo-5ce2fd0882860641b2affe16607f2dee83a1851f.zip |
Auto merge of #26006 - tipowol:fix-25680, r=Manishearth
Add missing same-origin referrer policy
<!-- Please describe your changes on the following line: -->
These changes add missing same-origin ReferrerPolicy in Request.webidl.
---
<!-- 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 #25680 (GitHub issue number if applicable)
<!-- Either: -->
- [X] There are tests for these changes
<!-- 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')
-rw-r--r-- | components/script/dom/request.rs | 3 | ||||
-rw-r--r-- | components/script/dom/webidls/Request.webidl | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/request.rs b/components/script/dom/request.rs index d75c452c7b9..55e26ba1e67 100644 --- a/components/script/dom/request.rs +++ b/components/script/dom/request.rs @@ -848,6 +848,7 @@ impl Into<MsgReferrerPolicy> for ReferrerPolicy { ReferrerPolicy::Origin => MsgReferrerPolicy::Origin, ReferrerPolicy::Origin_when_cross_origin => MsgReferrerPolicy::OriginWhenCrossOrigin, ReferrerPolicy::Unsafe_url => MsgReferrerPolicy::UnsafeUrl, + ReferrerPolicy::Same_origin => MsgReferrerPolicy::SameOrigin, ReferrerPolicy::Strict_origin => MsgReferrerPolicy::StrictOrigin, ReferrerPolicy::Strict_origin_when_cross_origin => { MsgReferrerPolicy::StrictOriginWhenCrossOrigin @@ -864,9 +865,9 @@ impl Into<ReferrerPolicy> for MsgReferrerPolicy { ReferrerPolicy::No_referrer_when_downgrade }, MsgReferrerPolicy::Origin => ReferrerPolicy::Origin, - MsgReferrerPolicy::SameOrigin => ReferrerPolicy::Origin, MsgReferrerPolicy::OriginWhenCrossOrigin => ReferrerPolicy::Origin_when_cross_origin, MsgReferrerPolicy::UnsafeUrl => ReferrerPolicy::Unsafe_url, + MsgReferrerPolicy::SameOrigin => ReferrerPolicy::Same_origin, MsgReferrerPolicy::StrictOrigin => ReferrerPolicy::Strict_origin, MsgReferrerPolicy::StrictOriginWhenCrossOrigin => { ReferrerPolicy::Strict_origin_when_cross_origin diff --git a/components/script/dom/webidls/Request.webidl b/components/script/dom/webidls/Request.webidl index b185014c606..048636c1e8b 100644 --- a/components/script/dom/webidls/Request.webidl +++ b/components/script/dom/webidls/Request.webidl @@ -95,6 +95,7 @@ enum ReferrerPolicy { "origin", "origin-when-cross-origin", "unsafe-url", + "same-origin", "strict-origin", "strict-origin-when-cross-origin" }; |