Bug 250989 - HTMLInputElement::setValueForUser should dispatch an input event
Summary: HTMLInputElement::setValueForUser should dispatch an input event
Status: RESOLVED DUPLICATE of bug 226023
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords: BrowserCompat
Depends on:
Blocks:
 
Reported: 2023-01-22 14:48 PST by Michael Catanzaro
Modified: 2023-01-24 10:35 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***