Skip values from the inputboxes with disabled autocompletion

This commit is contained in:
Alexander Butenko 2010-06-30 11:41:19 -04:00 committed by Christian Dywan
parent 896cc75f57
commit 0d5a18b69c

View file

@ -202,6 +202,8 @@ formhistory_navigation_decision_cb (WebKitWebView* web_view,
const gchar* script = "function dumpForm (inputs) {"
" var out = '';"
" 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')) {"
" var ename = inputs[i].getAttribute('name');"
" var eid = inputs[i].getAttribute('id');"