Skip to content

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

Merged
joewalsh merged 4 commits into
wikimedia:developfrom
stevenschobert:develop
Nov 28, 2016
Merged

Don’t adjust font size of password field on login#1067
joewalsh merged 4 commits into
wikimedia:developfrom
stevenschobert:develop

Conversation

@stevenschobert

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Thanks for the fix!

@stevenschobert

Copy link
Copy Markdown
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