Closed Bug 1758943 Opened 2 years ago Closed 11 months ago

Implement `Response.json` static method

Categories

(Core :: DOM: Networking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: lucacasonato, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [necko-triaged])

Attachments

(1 file)

https://github.com/whatwg/fetch/pull/1392 adds support for a static Response.json method to the Fetch spec. It would be awesome to add this new API to Gecko.

WPTs have already been written, and are available at https://github.com/web-platform-tests/wpt/pull/32825.

I am happy to do the implementation work for this addition.

Blocks: fetch
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 1765992
Assignee: nobody → Ms2ger

Seems like Damien Feugas has a local build of Firefox with this change: https://twitter.com/galstar/status/1626450365490032641

Well, so do I. I'm planning to submit the patches this week.

Depends on: 1819129
Attachment #9320249 - Attachment description: WIP: Bug 1758943 - Implement Response.json static method → Bug 1758943 - Implement Response.json static method; r=smaug
Pushed by Ms2ger@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c3726b4a9608
Implement Response.json static method; r=smaug
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

FF115 MDN docs for this done in https://github.com/mdn/content/issues/27169

Mostly just a compatibility data update and MDN release note.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: