bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Fetch Response type should not change if the body is consumed twice

RESOLVED FIXED in Firefox 56

Status

()

Core
DOM
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: baku, Assigned: baku)

Tracking

unspecified
mozilla56
Points:
---

Firefox Tracking Flags

(firefox56 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

a year ago
fetch('/').then(r => { r.blob().then(b => { console.log(b); }); r.text(); })

should print a blob, and not a string.
(Assignee)

Updated

a year ago
Summary: Fetch Response type should not changed. → Fetch Response type should not change if the body is consumed twice
(Assignee)

Comment 1

a year ago
Created attachment 8877575 [details] [diff] [review]
fetch_1.patch
Attachment #8877575 - Flags: review?(bugs)
Comment on attachment 8877575 [details] [diff] [review]
fetch_1.patch

Wow.
Attachment #8877575 - Flags: review?(bugs) → review+

Comment 3

a year ago
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/32b282335ab9
Fetch Response type should not change if the body is consumed twice, r=bkelly
https://hg.mozilla.org/mozilla-central/rev/32b282335ab9
Status: NEW → RESOLVED
Last Resolved: a year ago
status-firefox56: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.