Repository navigation
Implement iterable for headers - #12998
Conversation
|
Heads up! This PR modifies the following files:
|
|
r? @jdm |
721646f to
ced463f
Compare
|
|
||
| fn get_key_at_index(&self, n: u32) -> ByteString { | ||
| let sorted_header_vec = self.sort_header_list(); | ||
| let key = sorted_header_vec[n as usize].1.clone(); |
There was a problem hiding this comment.
I suspect this should be .0 instead... do any test results change when that's corrected?
There was a problem hiding this comment.
Oh strange! Yes you are correct. I had it as 0, but I don't know what happened there... I'll fix that right now.
|
There are a bunch of unrelated changes in the commit that implements Iterable; it would be best to remove those (at least into separate commits that can be removed from this PR before merging). |
|
#12819 should be merging within the next couple hours, so feel free to put this off until you can rebase your changes against master. |
|
Ok. I must have made mistakes with git. It wasn't my intention to group all the changes in the headers with the iterable implementation commit. I'll wait until the #12819 is merged into master. |
This commit implements iterable in DOM Headers based on iterable implementation from servo#12819. Expected wpt results are updated as well.
ced463f to
e3624ed
Compare
|
@jdm Rebased! |
|
@bors-servo: r+ |
|
📌 Commit e3624ed has been approved by |
Implement iterable for headers <!-- Please describe your changes on the following line: --> These patches make Headers iterable based on #12819. The expected wpt results are updated as well. --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because web platform tests for Headers already exist. Expected test results are updated with this PR. <!-- 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/12998) <!-- Reviewable:end -->
|
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
These patches make Headers iterable based on #12819.
The expected wpt results are updated as well.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is