Chromium Code Reviews
DescriptionSort headers for iteration
Fetch requires [1] that "the value pairs to iterate over are the
return value of running sort and combine with the header list", which
is to say we don't simply iterate over the internal data of Headers
but make a sorted (and combined) copy [2]. This manifested in some
failing imported cache tests that were sensitive to the order.
This CL implements making a copy and sorting the list for iteration;
it does not implement combining[3]. So not perfect but an incremental
improvement.
[1] https://fetch.spec.whatwg.org/#headers-class
[2] https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine
[3] https://fetch.spec.whatwg.org/#concept-header-value-combined
BUG=667376, 670439
R=yhirano@chromium.org
Committed: https://crrev.com/abbafbc0bacfca5beada1e3d1a5299569e0a5262
Cr-Commit-Position: refs/heads/master@{#436147}
Patch Set 1 #Patch Set 2 : No WPTServe = these two still fail #
Total comments: 2
Patch Set 3 : no var #Patch Set 4 : Rebased #
Messages
Total messages: 24 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||