Skip values from the inputboxes with disabled autocompletion
This commit is contained in:
parent
896cc75f57
commit
0d5a18b69c
1 changed files with 2 additions and 0 deletions
|
@ -202,6 +202,8 @@ formhistory_navigation_decision_cb (WebKitWebView* web_view,
|
||||||
const gchar* script = "function dumpForm (inputs) {"
|
const gchar* script = "function dumpForm (inputs) {"
|
||||||
" var out = '';"
|
" var out = '';"
|
||||||
" for (i=0;i<inputs.length;i++) {"
|
" for (i=0;i<inputs.length;i++) {"
|
||||||
|
" if (inputs[i].getAttribute('autocomplete') == 'off')"
|
||||||
|
" continue;"
|
||||||
" if (inputs[i].value && (inputs[i].type == 'text' || inputs[i].type == 'password')) {"
|
" if (inputs[i].value && (inputs[i].type == 'text' || inputs[i].type == 'password')) {"
|
||||||
" var ename = inputs[i].getAttribute('name');"
|
" var ename = inputs[i].getAttribute('name');"
|
||||||
" var eid = inputs[i].getAttribute('id');"
|
" var eid = inputs[i].getAttribute('id');"
|
||||||
|
|
Loading…
Reference in a new issue