Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Issue 2542073005: Sort headers for iteration (Closed)

Created:
4 years ago by jsbell
Modified:
4 years ago
Reviewers:
yhirano
CC:
chromium-reviews, blink-reviews, tfarina, blink-reviews-w3ctests_chromium.org, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sort 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)
jsbell
yhirano@ - please take a look?
4 years ago (2016-12-01 21:08:27 UTC) #2
jsbell
Failures are due to the cache storage tests not running with WPTServe at the moment. ...
4 years ago (2016-12-02 00:40:05 UTC) #6
yhirano
lgtm https://codereview.chromium.org/2542073005/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js (right): https://codereview.chromium.org/2542073005/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js#newcode225 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js:225: var headers = new Headers; [optional] I prefer ...
4 years ago (2016-12-02 01:57:08 UTC) #9
jsbell
https://codereview.chromium.org/2542073005/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js (right): https://codereview.chromium.org/2542073005/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js#newcode225 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/headers.js:225: var headers = new Headers; On 2016/12/02 01:57:07, yhirano ...
4 years ago (2016-12-02 17:03:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542073005/40001
4 years ago (2016-12-02 17:04:01 UTC) #15
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/TestExpectations: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-02 22:16:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542073005/60001
4 years ago (2016-12-02 22:38:56 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-03 02:33:37 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-03 02:35:23 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/abbafbc0bacfca5beada1e3d1a5299569e0a5262
Cr-Commit-Position: refs/heads/master@{#436147}

Powered by Google App Engine
This is Rietveld 408576698