Change Password fields with Content Type NewPassword don't suggest Automatic Secure Passwords

Originator:delabar
Number:rdar://45200004 Date Originated:10/11/2018
Status:Open Resolved:
Product:iOS Product Version:12.0
Classification: Reproducible:Always
 
Area:
Security Framework

Summary:
Trying to create a change password form and neither UITextField with the new-password textContentType is suggesting an automatic secure password. 

Steps to Reproduce:
1. Create a view controller with 3 UITextFields.
2. Set "Secure Text Entry" on all three.
3. Set the Content Type to "Password" on the first and "New Password" on the second two.
4. Setup a webcredentials associated domain.
5. Run the app on a device with AutoFill Passwords enabled.

Expected Results:
The first UITextField should display a password or the "🔑 Passwords" keyboard accessory. The second two UITextFields should have an Automatic Strong Password generated and autofilled for them.

Actual Results:
The first UITextField behaves correctly. The second two do not generate and autofill an Automatic Strong Password.

Additionally, the "🔑 Passwords" keyboard accessory behaves oddly. If you tap through the fields in the form:
* It displays for the first, as expected.
* It stays on the second, which doesn't make sense because this is supposed to be a new password.
* It hides on the third, which is expected.

If you tap back from the third to the second, it does not appear for the second.
Also, if you go from the first to the third, it does not appear on the third, nor does it appear when going from the third to the second.

It appears to behave the same if the UITextFields are contained in a UITableView (as demonstrated in the example code) or just embedded directly in a view controller's view.

Version/Build:
iOS 12.0 (16A366)
Xcode 10.0 (10A255)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!