Bug 187234

Summary: passwordrules
Product: WebKit Reporter: Craig Francis <craig+webkit>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, cdumez, jberlin, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.13   
Attachments:
Description Flags
Example HTML form which includes the passwordrules attribute none

Description Craig Francis 2018-07-01 10:40:04 PDT
Created attachment 344054 [details]
Example HTML form which includes the passwordrules attribute

The release notes for Preview 58 implies that the "passwordrules" attribute should be working now:

https://webkit.org/blog/8327/safari-technology-preview-58-with-safari-12-features-is-now-available/

https://developer.apple.com/password-rules/

But testing this on Release 59, the attached HTML always generates a 20 character alpha-numeric password with hyphens (no percentage sign to be seen).

I'm also aware that you need to close the tab and re-open the document to get a new 20 character password... otherwise WebKit will keep using the same generated password, even on page reload.

And a note for other web developers... The rules I've used are there to test "passwordrules", I would not recommend these be used in a real system (max of 10 characters, you must be joking).
Comment 1 Radar WebKit Bug Importer 2018-07-01 12:56:58 PDT
<rdar://problem/41700769>
Comment 2 Brent Fulgham 2022-02-10 20:49:52 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This should now be fixed in shipping software.