Commit Graph
4 Commits
Author SHA1 Message Date
Charles Vazac f548a89c09 Bug 1503355 [wpt PR 13789] - Make Server-Timing tests more resilient, a=testonly
Automatic update from web-platform-testsMake Server-Timing tests more resilient (#13789)

--

wpt-commits: 5c95adc476aa7273b152d2468b5e71b42757f007
wpt-pr: 13789
2018-11-10 09:03:09 +00:00
Tom McKee 3e4974f8cd Bug 1477877 [wpt PR 12149] - Adding tests against and fixes for tabs in Server-Timing headers, a=testonly
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
2018-07-29 18:58:25 +01:00
Tom McKee 363180e331 Bug 1477146 [wpt PR 12081] - Fixing Server-Timing header parsing tests, a=testonly
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
2018-07-29 18:55:49 +01:00
Valentin Gosu 4a4bb30f57 Bug 1460226 - Run Server-Timing WPT tests with HTTPS r=jgraham
MozReview-Commit-ID: AdsCi1xcbad
2018-05-10 14:38:33 +02:00