Bug 1732059 [wpt PR 30891] - Remove stashed request headers for speculative parser...
commitde9f8c2f608d5d31dd752817c93f867ac5f45fb5
authorMason Freed <masonf@chromium.org>
Sun, 3 Oct 2021 15:07:55 +0000 (3 15:07 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 4 Oct 2021 00:20:04 +0000 (4 00:20 +0000)
treeac61cb23b8e2f2cef408cf2fc582c89be9b33a2e
parent1f3751217379f3a9f64c33e1075158f6427b0a37
Bug 1732059 [wpt PR 30891] - Remove stashed request headers for speculative parser tests, a=testonly

Automatic update from web-platform-tests
Remove stashed request headers for speculative parser tests

The old code would append all of the request headers for the request
to the stashed value. That causes the failure string for all dependent
tests to change when, e.g. the User-Agent string changes due to the
test being run on a different bot.

This CL removes the headers, as those seem only useful for debugging,
and are causing lots of flaky behavior on at least Chromium bots.

Prior failure message:
 FAIL Speculative parsing, document.write(): link-rel-stylesheet-disabled Unhandled rejection: assert_equals: speculative case incorrectly fetched expected "" but got "param-encodingcheck: %C4%9E\r\nHost: web-platform.test:8001\nConnection: keep-alive\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/999.77.34.5 Safari/537.36\nAccept: text/css,*/*;q=0.1\nReferer: http://web-platform.test:8001/html/syntax/speculative-parsing/generated/document-write/link-rel-stylesheet-disabled.tentative.sub.html\nAccept-Encoding: gzip, deflate\nAccept-Language: en-us,en\n\n"

New failure message:
 FAIL Speculative parsing, document.write(): link-rel-stylesheet-disabled Unhandled rejection: assert_equals: speculative case incorrectly fetched expected "" but got "param-encodingcheck: %C4%9E\r\n"

Fixed: 1250457,1249920,1249921,1249954,1250003,1250004
Bug: 1144176
Change-Id: I45dbbb8794c6bf2d5e962cecf531e06a7af09160
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3170927
Commit-Queue: Mason Freed <masonf@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923491}

--

wpt-commits: 2dc665185ccac1b30667190b05e5e0cd9885d7c5
wpt-pr: 30891
testing/web-platform/tests/html/syntax/speculative-parsing/resources/stash.py