Closed Bug 1672934 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26214 - [beacon] Fix ArrayBuffer and URLSearchParams data

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26214 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26214
Details from upstream follow.

b'Yoav Weiss <yoavweiss@chromium.org>' wrote:

[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}

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
PASS: 6

Chrome

OK : 1
PASS: 4
FAIL: 2

Safari

OK : 1
PASS: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe06b65c6e7c [wpt PR 26214] - [beacon] Fix ArrayBuffer and URLSearchParams data, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.