Automatic update from web-platform-testsAdding tests against and fixes for tabs in Server-Timing headers
According to the spec
(https://w3c.github.io/server-timing/#the-server-timing-header-field),
optional whitespace is allowed amongst parameter names and values. We
should be discarding this whitespace during parsing but, when there are
tabs, we were treating it like an error and discarding the whole value.
Changed the code that tokenizes HTTP headers to skip tabs and spaces
when consuming optional whitespace.
BUG=798446
Change-Id: If776761e5ea199e662ec7b2b5aa245e4581131fd
Reviewed-on: https://chromium-review.googlesource.com/1147258
Reviewed-by: Emil A Eklund <[email protected]>
Commit-Queue: Tom McKee <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577325}
--
wpt-commits: 4ec913040882c7bb28846a65e7e086785dcf2ab6
wpt-pr: 12149
Automatic update from web-platform-testsFixing Server-Timing header parsing tests
The Server-Timing response header is allowed to have a comma-separated
list of timing metrics. We have test code that checks that the right
number of components get parsed. When there are more components than
expected, though, the test code ends up trying to lookup a field from an
undefined value. This caused the test runner to bail out and skip
subsequent tests.
This patch changes the test code to check for an undefined value and
skip ahead as needed.
Change-Id: I2304424978e3d4634c3508b1fefbba809374950e
Reviewed-on: https://chromium-review.googlesource.com/1144200
Reviewed-by: Yoav Weiss <[email protected]>
Commit-Queue: Tom McKee <[email protected]>
Cr-Commit-Position: refs/heads/master@{#576911}
--
wpt-commits: 36dd72261c766fe6e32d2db9b2b53d37918a945c
wpt-pr: 12081