I logged into Mozilla's Bugzilla. I noticed Firefox did not save my password.

How do I manually add my username and password to Firefox's Saved Password list?

If you're a developer with 3 minutes to spare, this is how to do it without installing another add-on.

  1. On the login page, Inspect Element the username and password fields and take note of their name attributes. For example on Khan Academy, that would be identifier for the username and password for the password.

  2. Inspect Element somewhere on the page. Find a small div or so, that's easiest.

  3. Right click the element in your inspector and choose Edit As HTML.

  4. Add the following HTML:

    <form method=post>
      <input name=identifier>
      <input type=password name=password>
      <input type=submit>
    </form>
    

    Replace the names (identifier and password) with the names from step #1. Note that you should not replace type=password, only the name=password field!

  5. Enter your credentials on the page in this form and hit submit. Firefox will now prompt you to save the credentials. The website will probably burp up an error or ignore the request or something, but we don't care about that.

Why does this work? Some sites deliberately do something funny to prevent you saving the password (the browser's remember password feature is often seen as insecure); other sites just have a funny form mangled beyond recognition for Firefox. Adding this simple form makes Firefox detect it and when you enter your credentials, it will prompt you to save them.

Now on the login page, as long as the fields actually have name attributes at all I guess (and it probably needs to be wrapped in a <form> too, I don't know), Firefox will typically recognize the fields and be able to fill them for you.

  • 5
    Adding a fake form.. Brilliant idea :))) Worked.. Thanks. – Emadpres Jan 5 at 9:26
  • 2
    Note that if the elements don't have a name attribute but only an id, you can just copy those - works like a charm! – Erwin Wessels May 16 at 19:03
  • 2
    Thanks! No plugin currently works in Quantum, but of course, this still works. – jpaugh Jul 4 at 23:20
  • 1
    @Santa Good to hear that it's even doable for non-developers! :D – Luc Sep 11 at 16:10
  • 1
    This didn't work for me initially. The reason? I'd previously told FF not to save the password for the site :/ So, if you're forgetful like me and this method doesn't work then check if you've told FF not to remember the password for the site. – Paul Sep 29 at 2:46

when I need to add password to Firefox I use FEBE Add-on to extract my passords to Json file edit it an re import the file again. i hop that help.

  • 3
    doesn't work anymore since the FF Version changed to "Quantum" – Albin Sep 17 at 11:39

I know this question is old, but I figured I'd throw in my solution anyway.

Since Firefox sometimes fights me on certain websites, the solution I've developed is using another browser such as Chrome and saving the username/password there. Then you can import the login information for the specific website from that other browser.

After you've saved the password in the other browser, you can do the import by following these steps:

  1. Going to the website in question and clicking the "(!)" to the left of the URL in the address bar.
  2. Then click the > button to "Show connection details".
  3. Then click the "More Information" button at the bottom of this little dialogue.
  4. In this new dialogue, go to the "Security" tab.
  5. Click the "View Saved Password" button.
  6. In this new dialogue, click the "Import" button, and follow the steps from there.*

*These steps are valid for Firefox version: 62.0.2. I imagine it's similar for other versions, but can't say for sure.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.