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

Demix Body to Request and Response #10958

Merged
merged 1 commit into from
Jun 30, 2021
Merged

Demix Body to Request and Response #10958

merged 1 commit into from
Jun 30, 2021

Conversation

foolip
Copy link
Contributor

@foolip foolip commented Jun 11, 2021

Data from mdn-bcd-collector was used to confirm data for these versions:

  • Chrome 42 (most entries)
  • Chrome 43 (Response.body)
  • Chrome 60 (formData attributes)
  • Edge 14 (most entries)
  • Edge 79 (formData attributes)
  • Firefox 39 (most entries)
  • Firefox 65 (Response.body)
  • Safari 10.1 (most entries, including always-rejecting Response.formData)
  • Safari 11.1 (Request.body + always-rejecting Request.formData)

The fixed formData attributes in Safari 14.1 / iOS 14.3 is based on:
#6620

Anything else was mirrored, including all mobile browser data. IE was
not tested at all.

Notable differences to the original data:

This also changes the experimental status to false, since this has all
been shipped basically everywhere now.

Closes #6620.

Data from mdn-bcd-collector was used to confirm data for these versions:
- Chrome 42 (most entries)
- Chrome 43 (Response.body)
- Chrome 60 (formData attributes)
- Edge 14 (most entries)
- Edge 79 (formData attributes)
- Firefox 39 (most entries)
- Firefox 65 (Response.body)
- Safari 10.1 (most entries, including always-rejecting Response.formData)
- Safari 11.1 (Request.body + always-rejecting Request.formData)

The fixed formData attributes in Safari 14.1 / iOS 14.3 is based on:
mdn#6620

Anything else was mirrored, including all mobile browser data. IE was
not tested at all.

Notable differences to the original data:
- Request.body is not shipped in Chrome/Firefox:
  https://crbug.com/688906
  https://bugzil.la/1387483
- Response.body was shipped in Chrome 43:
  https://bugs.chromium.org/p/chromium/issues/detail?id=240603#c40
- Edge ≤18 versions all replaced
- A bunch of false values changed to real version

This also changes the experimental status to false, since this has all
been shipped basically everywhere now.

Closes mdn#6620.
@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 11, 2021
@foolip
Copy link
Contributor Author

foolip commented Jun 11, 2021

This was a lot of work and if anyone would like to work on the MDN change, I would be very grateful.

I have still have one point of doubt, and that's the body attributes, in particular Request.body in Safari. Without testing it, I'm wondering if it could be a similar situation to the formData attributes.

@youennf you came up in my WebKit source digging. Do you know of simple test cases for request.body and response.body that would show if they indeed work correctly? Just want to make sure the claim that request.body is only supported in Safari ends up being accurate so you don't get angry bug reports.

@queengooborg queengooborg added needs content update This PR needs a corresponding update to mdn/content to update the documentation needs-release-note 📰 labels Jun 16, 2021
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but should be merged in the same week as mdn/content#6455

@Elchi3
Copy link
Member

Elchi3 commented Jun 30, 2021

The content changes landed, so merging this as well (otherwise we will have no compat table on the Request and Response pages)

@Elchi3 Elchi3 removed the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Jun 30, 2021
@Elchi3 Elchi3 merged commit cd03f19 into mdn:main Jun 30, 2021
@foolip foolip deleted the rm-Body branch June 30, 2021 07:03
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request Jul 1, 2021
ddbeck added a commit that referenced this pull request Jul 1, 2021
* Bump version to v3.3.10

* Add release note for #10958

* Add release note for #11061

* Add release note for #11062

* Add release note for #11266

* Add release note for #11276

* Add release note for #11307

* Add release note for #11317

* Add release note for #11323

* Add release note for #11328

* Add release note for #11334

* Fix formatting

* Set release date

* Add stats
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

Successfully merging this pull request may close these issues.

Update api.Body.formData for Safari 14.1
4 participants