[frontend] Autofill event polyfill.