Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response.bytes not implemented yet in Chromium. Browser compatibility table contains incorrect data. #25682

Closed
JamesParrott opened this issue Jan 16, 2025 · 2 comments
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@JamesParrott
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Response/bytes

What specific section or headline is this issue about?

Browser compatibility table

What information was incorrect, unhelpful, or incomplete?

Browser compatibility table shows REsponse.bytes is supported in Google Chrome. It is not.

What did you expect to see?

Firefox:

let r = new Response();
undefined
r.bytes();
Promise { <state>: "pending" }

Brave:

let r = new Response();
undefined
r.bytes();
Promise {<fulfilled>: Uint8Array(0)}

Do you have any supporting links, references, or citations?

Do you have anything more you want to share?

Feature implementation issue for Chromium: https://issues.chromium.org/issues/340206277

whatwg/fetch#1732

Do you have anything more you want to share?

Did you test this? If so, how?

Browser console.

Chrome (131.0.6778.265 Windows 11):

let r = new Response()
undefined
r.bytes()
Uncaught TypeError: r.bytes is not a function
    at <anonymous>:1:3

MDN metadata

Page report details
@JamesParrott JamesParrott added the needs triage This issue needs to be confirmed label Jan 16, 2025
@wbamberg wbamberg transferred this issue from mdn/content Jan 16, 2025
@caugner caugner marked this as a duplicate of #25681 Jan 17, 2025
@skyclouds2001
Copy link
Contributor

skyclouds2001 commented Jan 17, 2025

bcd says it is supported in chrome 132, and you are testing in chrome 131, definitely it can not be used

@JamesParrott
Copy link
Author

@skyclouds2001 Good spot! Thanks.

After I posted this yesterday, Chrome's auto-updated on my machine. I'm now on 132. Response.bytes is indeed supported in it:

let r = new Response();
undefined
r.bytes();
Promise {<fulfilled>: Uint8Array(0)}

@caugner caugner closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2025
@queengooborg queengooborg added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API and removed needs triage This issue needs to be confirmed labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

4 participants