Autofill works randomly with Unspecified textContentType

Originator:boriszinkovich
Number:rdar://42385729 Date Originated:19/07/2018
Status:open Resolved:NO
Product:iOS Product Version:iOS 12 beta 4
Classification:Bug Reproducible:always
 
Area:
UIKit

Summary:
Autofill works randomly for UITextField with secureTextEntry enabled when textContentType is Unspecified.

Steps to Reproduce:

1. Create some(for example four) UITextFields with Unspecified textContentType. Enable secureTextEntry for at least one of them.
2. Start typing to different text fields. On some text fields you will observe password autofill, on some of them user autofill and some of them won't have autofill at all.

Note: You may easily reproduce the issue with the attached sample.

Expected Results:

Autofill suggestion doesn't appear or at least autofill is the same for uitextfields with the same textContentType and secureTextEntry. 

Actual Results:

On some text fields you will observe password autofill, on some of them user suggestion and some of them won't have Autofill at all. The same text field may have different Autofill suggestions if you switch to them from different text fields. Seems like current AutoFill depends on the previous one.

Version/Build:
iOS 12 beta 4. Previous iOS 12 betas didn't have such issue.

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!