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

Meaningless "Promise-based version." notes for RTCPeerConnection #11158

Closed
foolip opened this issue Jun 19, 2021 · 4 comments · Fixed by #12300
Closed

Meaningless "Promise-based version." notes for RTCPeerConnection #11158

foolip opened this issue Jun 19, 2021 · 4 comments · Fixed by #12300
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API good first issue 💯 Good issues for getting started with this project.

Comments

@foolip
Copy link
Collaborator

foolip commented Jun 19, 2021

For example:

"opera": [
{
"version_added": "43",
"notes": "Promise-based version."
},
{
"version_added": "37",
"version_removed": "43"
}
],

This is a note for the new RTCPeerConnection() constructor, and makes no sense. This seems to be have copied and spread around at some point, and only partially clean up.

@foolip foolip added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 19, 2021
@foolip foolip added the good first issue 💯 Good issues for getting started with this project. label Jul 15, 2021
@lucalves
Copy link
Contributor

Would the solution be to remove the note?

@foolip
Copy link
Collaborator Author

foolip commented Jul 27, 2021

Yep, most of those notes can go. A few methods originally didn't return a promise and for those they can stay. Then all browsers should have the note, most likely.

@AnilSeervi
Copy link
Contributor

I'm confused. Do we need to remove all the notes: "Promise-based version." lines from the file?

@foolip
Copy link
Collaborator Author

foolip commented Aug 9, 2021

@AnilSeervi not quite, but all of the cases where Opera has these notes but Chrome doesn't are wrong and should be removed.

foolip pushed a commit that referenced this issue Sep 23, 2021
This PR corrects the data throughout the RTCPeerConnection API, which was a **big** mess, mostly due to copy-paste error.  The fixes include the following:

- Converts the "Promise-based version" notes into subfeatures.  It is more standard to use a subfeature rather than the notes.  Additionally, they were copied and pasted all across the Opera data, so it caused some major data discrepancies.  (Particularly, claiming support for features in Opera that weren't supported, wrong version numbers...)  Fixes #11158.
- Corrects the data regarding promise-based versions for Chrome.  After further digging in, it turns out that most of these features had the wrong version number.  New data comes from the commit history ([1](https://source.chromium.org/chromium/chromium/src/+/e16c96f5a5b517a64fdbc5be75f05e359e04b461), [2](https://source.chromium.org/chromium/chromium/src/+/70302a3d99ed149d59acf592edf9d32d4fd0dbda), [3](https://source.chromium.org/chromium/chromium/src/+/68f8e256dc7c7369127bd345100bcf776fa8acc0)).
- Corrects the Samsung Internet and Opera/Opera Android data. In the case of Samsung Internet, it appears to have been set to 6.0 most everywhere after a mirroring from the old, incorrect wiki data (#1606), and Opera's data initially came from the wiki tables (#1070).  When the Chrome data was corrected, however (see #3287), only the Chrome, Chrome Android, and WebView data was adjusted, leaving these other browsers untouched.
- Corrects the version number for `createDataChannel` based upon results from the mdn-bcd-collector project (v3.3.0).
- Finally, mirrors the Chrome data to both Chrome Android and WebView.  Both had been left as `true` for many of the features, however since we have ranged values, we're able to replace the `true` with `≤37` for WebView, and mirror Chrome straight to Chrome Android since we know Chrome Android has supported this API back then.
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 good first issue 💯 Good issues for getting started with this project.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants