title: Programmatically disable password confirmation pop-up in Firefox
body: <p>I have a simple password change form as below. It's part of a larger page, but this snippet serves to illustrate. There's no user identifier in this form - no login name, ID or other reference. It's not required because that information is stored as part of the session data on the server and picked up there when this form is submitted by an AJAX call.</p>
  <pre><code>&lt;div id=&quot;passwordChange&quot; &gt;
      &lt;form id=&quot;passwordForm&quot;&gt;
          &lt;table class=&quot;formbox dropshadow&quot;&gt;
              &lt;thead&gt;
              &lt;tr&gt;
                  &lt;td colspan=&quot;2&quot;&gt;Change Password&lt;/td&gt;
              &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;label for=&quot;currentPassword&quot;&gt;Current Password&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id=&quot;currentPassword&quot; name=&quot;oldPassword&quot; type=&quot;password&quot; required pattern=&quot;.{5,20}&quot; title=&quot;Passwords should be between 5 and 20 characters long&quot;&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;label for=&quot;newPassword&quot;&gt;New Password&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id=&quot;newPassword&quot; name=&quot;newPassword&quot; type=&quot;password&quot; required pattern=&quot;.{5,20}&quot; title=&quot;Passwords should be between 5 and 20 characters long&quot;&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;label for=&quot;confirmPassword&quot;&gt;Confirm Password&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id=&quot;confirmPassword&quot; name=&quot;confirmPassword&quot; type=&quot;password&quot; required pattern=&quot;.{5,20}&quot; title=&quot;Passwords should be between 5 and 20 characters long&quot;&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;/tbody&gt;
              &lt;tfoot&gt;
              &lt;tr&gt;
                  &lt;td colspan=2&gt;
                      &lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;setPassword&quot;&gt;
                      &lt;input type=submit name=submit value=&quot;Change Password&quot;&gt;
                      &lt;input type=button name=cancel value=&quot;Cancel&quot;&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;/tfoot&gt;
          &lt;/table&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  <p>If I enter a password that Firefox has already stored for the domain in the first password box, and Firefox has stored that password for more than one stored user I get this box pop-up when I click <code>Change Password</code>:</p>
  <p><img src="https://i.stack.imgur.com/qAM7c.png" alt="enter image description here" /></p>
  <p>The thing is, I might not be changing the password for any of the listed users, but I can't proceed past this point without giving Firefox an answer. This makes it impossible to change the password for a user whose password is not stored by the Firefox password manager.</p>
  <p>Now, there may be a configuration option to enable or disable this behaviour (I'd be pleased to hear about it) but that's only good for my computer.</p>
  <p>I want to be able to disable this behaviour as part of the page so that my customers don't run up against it.</p>
  <p>Is there some HTML tag or attribute I can use? Is there a Javascript hack, or just a structural change I can make to the form that stops this occurring?</p>
  <p>FWIW I'm running Firefox 37.0.2</p>