]> spindle.queued.net Git - midori/commitdiff
Skip values from the inputboxes with disabled autocompletion
authorAlexander Butenko <a.butenka@gmail.com>
Wed, 30 Jun 2010 15:41:19 +0000 (11:41 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 30 Jun 2010 19:09:55 +0000 (21:09 +0200)
extensions/formhistory.c

index b772ef04bf90c0990abf440b749312abe2dc4cd1..1dd535eb2651e3483ef611f5b50d863c19f14e7b 100644 (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');"