WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 164219
Autofill doesn't fire change event
https://bugs.webkit.org/show_bug.cgi?id=164219
Summary
Autofill doesn't fire change event
David Gasperoni
Reported
2016-10-31 03:05:20 PDT
Created
attachment 293412
[details]
Screencast illustrating the problem When a form was filled before, some suggestions will appear in a dropdown under the specific input field. I suppose these are the ones that one can purge from Preferences, Autofill, Other forms. If one selects one of the options, the `change` event for that input field. This means callbacks tied to those fields are not triggered.
Attachments
Screencast illustrating the problem
(1.10 MB, video/mp4)
2016-10-31 03:05 PDT
,
David Gasperoni
no flags
Details
Screencast illustrating the problem
(1.10 MB, video/mp4)
2016-10-31 03:07 PDT
,
David Gasperoni
no flags
Details
Simple HTML illustrating the bug
(1016 bytes, text/html)
2024-03-20 02:44 PDT
,
Karel Bilek
no flags
Details
Screen recording with the problem
(16.71 MB, video/quicktime)
2024-03-20 02:45 PDT
,
Karel Bilek
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
David Gasperoni
Comment 1
2016-10-31 03:07:16 PDT
Created
attachment 293413
[details]
Screencast illustrating the problem
David Gasperoni
Comment 2
2017-03-23 12:36:06 PDT
Still an issue in Safari Technology Preview release 26.
Karel Bilek
Comment 3
2024-03-19 06:00:15 PDT
This is still an issue in 2024, for number inputs. Text field seems to correctly trigger change event. However, number field seems to not trigger any change event. Should I record another recording? It's a very straightforward issue with straigtforward repro.
Ahmad Saleem
Comment 4
2024-03-19 07:29:53 PDT
(In reply to Karel Bilek from
comment #3
)
> This is still an issue in 2024, for number inputs. > > Text field seems to correctly trigger change event. However, number field > seems to not trigger any change event. > > Should I record another recording? It's a very straightforward issue with > straigtforward repro.
Yes please. Straightforward repo would be helpful.
Karel Bilek
Comment 5
2024-03-20 02:44:41 PDT
Created
attachment 470443
[details]
Simple HTML illustrating the bug /echo-post is a simple script that replies to POST by echoing its input. It is not that important for this bug report, it just needs to be there.
Karel Bilek
Comment 6
2024-03-20 02:45:46 PDT
Created
attachment 470444
[details]
Screen recording with the problem
Karel Bilek
Comment 7
2024-03-20 02:51:33 PDT
Okay. I made a small repro and I put it here
https://karelbilek.com/static/safari-repro/
The form and both its fields log all events to the textarea below. There is a dumb POST echo at
https://karelbilek.com/echo-post
which replies to all POST requests with all form fields. To reproduce: 1. first, you fill something in the form, put Submit. (This is to make Safari offer you the autofill.) 2. then, after the successful form submit, you click back. 3. you click on autofill on both the fields. You can see that the text autofill correctly triggers change event. However, the number input autofill doesn't trigger anything. (The only thing that gets triggered are the mouse events from all the movements, but that is irrelevant here.) Note that Chrome doesn't have this issue, because it doesn't offer autocomplete at all on number inputs. Safari does. ( This is a root cause for this svelte bug that I just reported to svelte - svelte doesn't correctly bind the number value, because it doesn't get any event triggered.
https://github.com/sveltejs/svelte/issues/10841
)
Karel Bilek
Comment 8
2024-03-20 02:55:41 PDT
Note that this might be a different issue than the original bug from 2016, I can open as a new bug if needed.
Karel Bilek
Comment 9
2024-03-20 03:03:46 PDT
When I run a debug build of Safari, I see ``` FormMetadata.js:3:86383: CONSOLE JS ERROR InvalidStateError: The input element's type ('number') does not support selection. ``` That seem to get close to the root of the problem?
Karel Bilek
Comment 10
2024-03-20 03:26:59 PDT
FormMetadata.js seems to be from Safari/macOS itself, not from WebKit, as far as I can tell.
Karel Bilek
Comment 11
2024-03-20 03:53:08 PDT
From all I can tell something like that is here, from Apple's Chrome extension
https://gist.github.com/AngeloD2022/fc105f77e999c024dff937f792875507
but I am really flying blind here it seems to be Apple's proprietary js that has some bug and tries to do select JS event on number field which is impossible. (And so it might be Safari bug and not WebKit bug.)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug