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

Don’t adjust font size of password field on login #1067

Merged
merged 4 commits into from
Nov 28, 2016
Merged

Don’t adjust font size of password field on login #1067

merged 4 commits into from
Nov 28, 2016

Conversation

stevenschobert
Copy link
Contributor

Hey folks!

This patch fixes a bug in iOS 10, where setting resize-to-fit text on a secure text field causes the app to hang, peak memory, and eventually crash.

To fix it I just disabled the resizing. To me, since in secure text fields you can't see the actual characters anyways, there doesn't seem to be much harm in turning off the resizing, but let me know if there something else you'd want to do instead!

bug: https://phabricator.wikimedia.org/T150982
radar: https://openradar.appspot.com/28590124

Before patch

before-patch

After patch

after-patch

fixes a bug in iOS 10, where setting
resize-to-fit text on a secure text field
causes the app to hang, peak memory, and
eventually crash

bug: https://phabricator.wikimedia.org/T150982
radar: https://openradar.appspot.com/28590124
@josve05a josve05a added the bug label Nov 20, 2016
@joewalsh joewalsh merged commit 0d4c3a9 into wikimedia:develop Nov 28, 2016
@joewalsh
Copy link
Contributor

Thanks for the fix!

@stevenschobert
Copy link
Contributor Author

Happy to help! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants