-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix requestFullscreen version info for Chromium. #4404
Conversation
See added link for backing reference.
7bf6c84
to
df473d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Since we have the Promise-enabled syntax as a subfeature, let's use it to the fullest. Essentially, I would say that we can get rid of the note, and instead set "69" for the returns_a_promise
version. WebView should also be set to "69" since it's based upon Chrome's releases starting with version 37, and since Opera is Chromium-based, it should be set to "51" and "48" for the desktop and Android versions respectively.
Overall, though, great work, and good find!
@vinyldarkscratch How can I render this table so that I can see whether the changes I make make sense? I coulnd't spot that in the README. So far I'm editing it blindly, which is why I kept my change as small as possible. |
You can run |
This doc also has some instructions for using the render script with an MDN preview (I haven't tried this recently though, so I'm not certain it renders exactly like the regular compat tables): https://github.com/mdn/browser-compat-data/blob/master/docs/testing.md#rendering |
api/Element.json
Outdated
@@ -6069,7 +6069,8 @@ | |||
"support": { | |||
"chrome": [ | |||
{ | |||
"version_added": "71" | |||
"version_added": "71", | |||
"notes": "The unprefixed fullscreen API shipped in Chromium 71, the <code>Promise</code>-enabled version of the vendor-prefixed API already shipped in Chromium 69. See <a href='https://crbug.com/383813#c57'>bug 383813</a>." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The webkit information should be done like this.
The information about the promise should probably be another item in the array. I've opened #4468, but will not hold up merging of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome Android and WebView Android need to match whatever you do here.
Here's where you look up what is and is not in WebView.
api/Element.json
Outdated
@@ -6203,10 +6204,10 @@ | |||
"description": "Returns a <code>Promise</code>", | |||
"support": { | |||
"chrome": { | |||
"version_added": false | |||
"version_added": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As should Chrome Android and Android WebView.
Hi @nh2, do you plan to revisit this PR any time soon? |
To keep this moving, I pushed a change responding to the review comments here. Thanks, everyone. @jpmedley would you mind taking another look at this? Thank you! |
Thanks for taking it up, I was on holiday and don't mind at all if you guys finish this.
Is it not useful to document on the page that the vendor-prefixed API and the non-vendor prefixed API are were released in 2 different versions (69 and 71 respectively)? Otherwise people may be surprised that their unprefixed code doesn't work on 69 and 70. |
This is a good point and the data is useful, but it's captured in the schema a bit differently than a note (in this case, the data is already there; if you look beneath the changes in the diff, you'll see some |
@ddbeck That sounds good -- I don't mind at all which way it's shown, just wanted to point out that the PR currently doesn't show the info any longer. |
The changes I requested still aren't in. Both the unprefixing and the support for promises need to be captured. As the PR stands, it only swaps one for the other. |
@jpmedley I don't understand what you mean. Right now I'm reading the Chrome data in the file as:
What's missing? |
I forgot that's how we decided to do promises. This PR looks right then. |
See added link for backing reference.
Re-posting my notes while researching this (you don't need to read this, only this summary:
Cr-Commit-Position: refs/heads/master@{#562946}
.A checklist to help your pull request get merged faster: