Closed Bug 1364925 Opened 7 years ago Closed 7 years ago

navigator.sendBeacon should not force application/octet-stream as content-type for ArrayBuffer

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(2 files, 2 obsolete files)

This is a follow up of 1329298 comment 11.
Attached patch beacon.patchSplinter Review
Per spec, we should force any special content-type if the body extractor returns null.
Assignee: nobody → amarchesini
Attachment #8867750 - Flags: review?(bugs)
Comment on attachment 8867750 [details] [diff] [review]
beacon.patch

We really need wpt tests for this, but I have no idea how to write such.
Please ask jgraham or someone.
Attachment #8867750 - Flags: review?(bugs) → review+
Comment on attachment 8867750 [details] [diff] [review]
beacon.patch

Wait, so what content type is used after this patch?
I guess nothing, which is per Fetch spec.
Attached patch beacon2.patch (obsolete) — Splinter Review
Attachment #8868299 - Flags: review?(james)
Attached patch beacon2.patch (obsolete) — Splinter Review
Attachment #8868299 - Attachment is obsolete: true
Attachment #8868299 - Flags: review?(james)
Attachment #8868411 - Flags: review?(annevk)
Attached patch beacon2.patchSplinter Review
step_timeout instead of setTimeout
Attachment #8868411 - Attachment is obsolete: true
Attachment #8868411 - Flags: review?(annevk)
Attachment #8868444 - Flags: review?(annevk)
Comment on attachment 8868444 [details] [diff] [review]
beacon2.patch

Review of attachment 8868444 [details] [diff] [review]:
-----------------------------------------------------------------

Looks reasonable.
Attachment #8868444 - Flags: review?(annevk) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2e7b01803f79
navigator.sendBeacon should not force application/octet-stream as content-type for ArrayBuffer, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/862bbeb666a0
WPT for sendBeacon and content-type header, r=annevk
https://hg.mozilla.org/mozilla-central/rev/2e7b01803f79
https://hg.mozilla.org/mozilla-central/rev/862bbeb666a0
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: