title: firefox password autocomplete not working
body: <p>I have a webapp with a simple login page</p>
  
  <pre><code>    &lt;form id="logonForm" method="post" action="j_security_check"&gt;
        &lt;fieldset id="logon"&gt;
          &lt;input id="ipt_j_username" type="text" name="j_username" value="&lt;bean:write name="user" /&gt;" title="some title" /&gt;
          &lt;input id="ipt_j_password" type="password" name="j_password" value="&lt;bean:write name="password" /&gt;" title=" some title" /&gt;
        &lt;/fieldset&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Once I entered the login/pwd, FF asked me to save it, which I accepted (in the list of saved passwords in FF there is a pair user/pwd for my url). So now the username/pwd fields are automatically pre-filled each time I visit my login page. So far it's ok.</p>
  
  <p>I did some development on my login form and I changed the id attributes for the user and pwd inputs. </p>
  
  <pre><code>&lt;form id="logonForm" method="post" action="j_security_check"&gt;
    &lt;input id="IDUser" type="text"  name="j_username" value="&lt;bean:write name="user" /&gt;" title="some title" /&gt;
    &lt;input id="passUser" type="password"  name="j_password" value="&lt;bean:write name="password" /&gt;" title="some title" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>After this change, FF stopped autocompleting my inputs. FF is not asking me to save the user/pwd since the used combination was already saved before. Of course, if I manually delete the saved user/pwd for my url then FF will ask me to save it and everything will work fine.</p>
  
  <p>Can someone explain to me how FF is mapping input fields with saved user/pwd values? With my example, it looks like FF is using the id attributes for this. Somewhere I saw that it's enough to have input with type="password" for FF but in my case this is not working.</p>