Bug 250989

Summary: HTMLInputElement::setValueForUser should dispatch an input event
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebCore Misc.Assignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bugs-noreply, karlcow, mcatanzaro
Priority: P2 Keywords: BrowserCompat
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   

Michael Catanzaro
Reported 2023-01-22 14:48:54 PST
HTMLInputElement::setValueForUser is used to autofill form elements. It differs from setting the form value normally because it creates a change event to trick websites into detecting user input. However, this is not enough for some websites that look only for input events and not change events to decide whether the user modified the form. On such websites, the user has to enter an extra character and then delete it as a workaround. This fixes password autofill on https://my.cigna.com and https://myaccount.spireenergy.com. It has to be tested manually since this functionality is not exposed to JavaScript.
Attachments
Michael Catanzaro
Comment 1 2023-01-22 14:51:40 PST
Michael Catanzaro
Comment 2 2023-01-23 09:47:18 PST
Probably a duplicate of bug #226023, though not yet certain.
Michael Catanzaro
Comment 3 2023-01-24 10:35:20 PST
*** This bug has been marked as a duplicate of bug 226023 ***
Note You need to log in before you can comment on or make changes to this bug.