-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Overrides accessibilityScrollToVisible #42047
Conversation
I don't think we can rely on private APIs for fixes. That may cause us to run into trouble with App Store policies. Is there no other way to do this? cc @stuartmorgan (who I'm told I should forward to in @jmagman s absence). |
I am attempting to test with apple store submission to see if we will run into any trouble or not. |
That's true, but the description in the PR and the method comments is incorrect; methods that we are defining on our own objects, without any special prefixing, by definition cannot be private API. I don't see any private API usage in this PR. |
This is largely irrelevant for a framework, because "currently passes submission" is not at all the same thing is "follows app store policy" and "will continue to work, rather than suddenly preventing every single person who uses Flutter from submitting their app". If this were calling private API and didn't happen to be picked up by the current app store checks, I would still veto landing it for that reason. But this isn't using any private API AFAICT, so the only issue I see here is the incorrect description in the code. |
I understand what the code is doing. I'm saying that there is a very important distinction between how you are describing this code and what is actually happening. This PR is just defining API on our own objects, with perfectly reasonable names. It happens that if we define such API, UIKit will apparently call it, which is convenient for us. But that's UIKit's doing, not ours.
We would not want to attempt to hide use of private APIs; we just wouldn't use them.
That's definitely not a fact. We're benefiting from UIKit calling an API on our own object, which does not involve us using any APIs. We should change the description accordingly, to say something like "Observed behavior is that this method is called when an item is swipe-to-focusd in VoiceOver." |
I see the distinction now, and I agree with your point. I will update 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.
LGTM
…127241) flutter/engine@482c99a...aac0919 2023-05-19 [email protected] Overrides accessibilityScrollToVisible (flutter/engine#42047) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#127241) flutter/engine@482c99a...aac0919 2023-05-19 [email protected] Overrides accessibilityScrollToVisible (flutter/engine#42047) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
fixes flutter/flutter#61624
Observed behavior is that this method is called when an item is swipe-to-focusd in VoiceOver.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.