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:
parent
288585f91a
commit
30b2ba41cd
@ -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'));"
|
||||||
|
" }"
|
||||||
" }"
|
" }"
|
||||||
"}"
|
"}"
|
||||||
""
|
""
|
||||||
|
Loading…
Reference in New Issue
Block a user