1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Scripts: Send change event when changing input value in completeFormData

Fixes incorrectly completing form data on some sites.

CCBUG: 391327
This commit is contained in:
David Rosca 2018-03-03 14:28:57 +01:00
parent 288585f91a
commit 30b2ba41cd
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -230,8 +230,10 @@ QString Scripts::completeFormData(const QByteArray &data)
" var type = input.type.toLowerCase();" " var type = input.type.toLowerCase();"
" if (type != 'text' && type != 'password' && type != 'email')" " if (type != 'text' && type != 'password' && type != 'email')"
" continue;" " continue;"
" if (input.name == key)" " if (input.name == key) {"
" input.value = val;" " input.value = val;"
" input.dispatchEvent(new Event('change'));"
" }"
" }" " }"
"}" "}"
"" ""