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. #25681

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

JamesParrott commented Jan 16, 2025

What type of issue is this?

Incorrect support data. Response.bytes not implemented yet in Chromium.

What information was incorrect, unhelpful, or incomplete?

The summary table is incorrect. Response.bytes is not implemented in Google Chrome (any more than it is in Edge - the table is correct about that other column).

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

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

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

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

Incorrect information on MDN in this table: https://developer.mozilla.org/en-US/docs/Web/API/Response/bytes#browser_compatibility

Do you have anything more you want to share?

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

whatwg/fetch#1732

MDN URL

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

MDN metadata

MDN page report details
  • Query: api.Response.bytes
  • Report started: 2025-01-16T21:30:40.822Z
@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jan 16, 2025
Copy link

This issue was automatically closed because the title was left as the default, and a summary was not added.

If this is not a spam issue, please replace the <SUMMARIZE THE PROBLEM> part of the title with a short summary of the reported issue, and then post a follow-up comment. A maintainer will review your issue and reopen it if needed.

@github-actions github-actions bot added the invalid Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry! label Jan 16, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2025
@JamesParrott JamesParrott changed the title api.Response.bytes - <SUMMARIZE THE PROBLEM> Response.bytes not implemented yet in Chromium. Browser compatibility table contains incorrect data. Jan 16, 2025
@caugner caugner reopened this Jan 16, 2025
@caugner caugner removed the invalid Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry! label Jan 16, 2025
@JamesParrott
Copy link
Author

Thanks Claas. I really appreciate it when nice humans review new issues.

As you've probably noticed however, before this was reopened, I jumped the gun and made what is now effectively a duplicate issue:
#25682

If someone knows how the {{compat}} field should be edited to make the information accurate, we can just close both!

@caugner caugner closed this as completed Jan 17, 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

2 participants