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   

Description Michael Catanzaro 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.
Comment 1 Michael Catanzaro 2023-01-22 14:51:40 PST
Pull request: https://github.com/WebKit/WebKit/pull/8957
Comment 2 Michael Catanzaro 2023-01-23 09:47:18 PST
Probably a duplicate of bug #226023, though not yet certain.
Comment 3 Michael Catanzaro 2023-01-24 10:35:20 PST

*** This bug has been marked as a duplicate of bug 226023 ***