New strong-password suggestion doesn't work in WKWebView

Originator:uson1x
Number:rdar://42805892 Date Originated:01.08.2018
Status:Duplicate of 35653462 (Open) Resolved:
Product:WebKit Product Version:
Classification: Reproducible:
 
WKWebView suggests password completion, however, it does not suggest new passwords on the same form where SFSafariViewController does.

Steps to Reproduce:
1. Load html page in WKWebView with this form:
<form>
  <input id="user-text-field" type="email" autocomplete="username"/>
  <input id="password-text-field" type="password" autocomplete="new-password"/>
  <button type="submit">Next</button>
</form>
2. Tap on password field

Expected Results:
WKWebView presents the same new-strong-password-suggestion just as SFSafariViewController does.

Actual Results:
WKWebView suggests to use saved password.

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!