New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support OpenEndedDictionary (Mozmap) in the Headers #13356
Conversation
Heads up! This PR modifies the following files:
|
r? @jdm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm operating under the assumption that all of the tests now timing out require Promises. These changes look good!
@@ -14,7 +14,7 @@ use dom::bindings::codegen::Bindings::RequestBinding::RequestMethods; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestMode; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestRedirect; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestType; | |||
use dom::bindings::codegen::UnionTypes::HeadersOrByteStringSequenceSequence; | |||
use dom::bindings::codegen::UnionTypes::HeadersOrByteStringSequenceSequenceOrByteStringMozMap as HeadersInitType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra space before as.
&HeadersInitType::ByteStringSequenceSequence(ref b) => | ||
HeadersInitType::ByteStringSequenceSequence(b.clone()), | ||
&HeadersInitType::ByteStringMozMap(ref m) => | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&HeadersInitType::ByteStringMozMap(ref m) =>
HeadersInitType::ByteStringMozMap(m.clone())
e0051b0
to
e5eea2a
Compare
@@ -14,7 +14,7 @@ use dom::bindings::codegen::Bindings::RequestBinding::RequestMethods; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestMode; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestRedirect; | |||
use dom::bindings::codegen::Bindings::RequestBinding::RequestType; | |||
use dom::bindings::codegen::UnionTypes::HeadersOrByteStringSequenceSequence; | |||
use dom::bindings::codegen::UnionTypes::HeadersOrByteStringSequenceSequenceOrByteStringMozMap as HeadersInitType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... dom::bindings::codegen::Bindings::RequestBinding
should re-export this union type as HeadersInit
. Have you tried importing that instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right! Fixing it right now. Thanks!
I'm going to hold off merging this until after Promises, since there's a lot of overlap between the test result changes. |
☔ The latest upstream changes (presumably #12830) made this pull request unmergeable. Please resolve the merge conflicts. |
If you rebase, I will merge :) |
Oh, and go ahead and squash the commits into one. |
@bors-servo: delegate+ |
✌️ @jeenalee can now approve this pull request |
e5eea2a
to
7577c3f
Compare
Expected wpt results are updated as well.
7577c3f
to
3b75d22
Compare
@bors-servo: r=jdm |
📌 Commit 3b75d22 has been approved by |
Support OpenEndedDictionary (Mozmap) in the Headers <!-- Please describe your changes on the following line: --> This PR will support OpenEndedDictionary (based on MozMap implementation from #13332) in the Headers API. --- <!-- 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 #11897 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/13356) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
|
@bors-servo retry #13384 |
Support OpenEndedDictionary (Mozmap) in the Headers <!-- Please describe your changes on the following line: --> This PR will support OpenEndedDictionary (based on MozMap implementation from #13332) in the Headers API. --- <!-- 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 #11897 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/13356) <!-- Reviewable:end -->
Support OpenEndedDictionary (Mozmap) in the Headers <!-- Please describe your changes on the following line: --> This PR will support OpenEndedDictionary (based on MozMap implementation from #13332) in the Headers API. --- <!-- 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 #11897 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/13356) <!-- Reviewable:end -->
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
This PR will support OpenEndedDictionary (based on MozMap implementation from #13332) in the Headers API.
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is