Bug 1672934 [wpt PR 26214] - [beacon] Fix ArrayBuffer and URLSearchParams data, a...
commit839746390ab43d27bd208831e91bba3f6e31b6a0
authorYoav Weiss <yoavweiss@chromium.org>
Sat, 24 Oct 2020 10:43:39 +0000 (24 10:43 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 26 Oct 2020 12:06:35 +0000 (26 12:06 +0000)
tree6e51cc9b00d0b9cbe48a2bc1c47ccfe01758b099
parent9700d1f887c9b2eba589c8002cabdd5d2fb6fa08
Bug 1672934 [wpt PR 26214] - [beacon] Fix ArrayBuffer and URLSearchParams data, a=testonly

Automatic update from web-platform-tests
[beacon] Fix ArrayBuffer and URLSearchParams data

`navigator.sendBeacon()` was not handling DOMArrayBuffer and
URLSearchParams inputs properly, resulting in failing WPTs related to
the sent Content-Type, as well as in the wrong data sent in the case
of DOMArrayBuffers.
This CL fixes that.

Bug: 876671
Change-Id: I17674b3041aa0f0bdbd1a570ab34be48b0dd98b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489986
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820134}

--

wpt-commits: 4a65f5002f1e2e778f62a9b99f4298dc8948f26c
wpt-pr: 26214
testing/web-platform/tests/beacon/headers/header-content-type-and-body.html [moved from testing/web-platform/tests/beacon/headers/header-content-type.html with 61% similarity]
testing/web-platform/tests/beacon/resources/content-type-and-body.py [moved from testing/web-platform/tests/beacon/resources/content-type.py with 92% similarity]