-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Set true values in API for Safari with version_added: null #3673
Conversation
As with #3658 there will be errors here of at least these kinds:
|
I don’t doubt it, there’s sure to be errors in precise implementation in Safari! I realized that, while seeing your comments on the other PRs, I had the latest version of the WebKit source, not the particular version that was deployed for Safari 12. I knew, however, that there would be certain instances that would have to be checked by hand — as such, I didn’t create any “false” values within this PR, at least not yet. That leaves only potential for false positives, luckily (which in my opinion, is far better to have than false negatives). I’m always looking for review/a second pair of eyes. Any and all feedback is highly appreciated! |
Ah, can you update the description to say this is only setting true values? Do you think it'd make sense to first create a PR with null→true that have been confirmed by running tests? That's hopefully a lot, and makes it easier to review what remains since those are more likely to be incorrect. |
@vinyldarkscratch since I already had the data and scripts I sent #3700 and humbly request your review of that. I'm going to try rebasing this PR on top of that to see what kinds of changes will remain to review. |
ea1d9e7
to
ec92d3c
Compare
How much overlap is there between this PR and #3700? I guess if both PRs update a subset from null to true we could trust that subset with relatively high confidence. |
Okay, given this, I think we can merge #3700. |
Merged #3700 and there are indeed no merge conflicts. 👍 Can you please rebase this PR, so the changeset becomes smaller? |
Rebase complete! |
This has been open for a long time now and basically the reason why we haven't merged it is still as described in #3658 (comment) I'm closing this as it is unlikely to merged currently. It can be re-opened if we gain new confidence with this approach or want to experiment with it again. |
Reviews and suggestions are highly encouraged and welcomed, especially as this is an almost entirely automated process, which hardly takes runtime flags into account. See something that looks inaccurate? Let me know!
This is to help the efforts of 2019 KR by replacing the
null
values with boolean values where applicable. All true values were identified within an IDL file in the WebKit source. This does not replace any values set to a version number. This PR is intended to remove as many null values as possible, and lead towards producing "real" values down the line.I wrote the following JavaScript and Python files to create a list of all the values set to null and check upon their implementation in the IDL files respectively: https://gist.github.com/vinyldarkscratch/db303f7e72a582d2bf89d84bc4d035e2
Stats before and after this PR (based upon v0.0.73):
true
valuesnull
values