The password manager in Firefox includes the ability to log debugging information to the Browser Console, which can be enabled to help diagnose problems. This logging is off by default. Passwords are not shown in the output.
Enable Debug Logging
- Enter "about:config" in the URL bar.
- You may see a warning screen, cautioning you about changing advanced preferences. Click the button to ignore the warning.
- Find the
signon.debugsetting, and set them to
true(the latter may already be
true). You can enter the name in the "Filter" box at the top of the page to help find them. To change the value of a setting, right-click on the line and select "Toggle" or just double-click the line.
View the Logging
- To view the logging, open the Browser Console and/or Browser Content Toolbox (for logs related to in-page stuff) from the Tools → Web Developer menu. If you don't see these, follow the instructions on the MDN page to enable it.
- Make sure the log level toggles ("Errors", "Warnings", "Logs", …, "Debug") are all enabled (blue) in the Browser Console. "CSS" should ideally be disabled.
- Load the problematic web (or about:logins) page in in the browser. You should see messages in the Browser Console like:
LoginManagerContent: onDOMFormHasPassword for https://www.google.com LoginManager: Counting logins matching host: https://www.google.com, formSubmitURL: httpRealm: null
All password manager logging contains the string "login" in the prefix so you can type the word "login" in the "Filter output" box of the Browser Console to filter out other content.
To copy/save the logs, right-click in an open area of the console and choose "Export visible messages to" and choose "Clipboard" or "File" depending on which you prefer. Include them as an attachment on your bug report, not in the body of a comment.
Won't auto-fill a saved password
SUMO article Note that auto-fill refers to the field being filled automatically whereas autocomplete refers to completing the field value based on what you have typed so far (usually via the autocomplete dropdown).
- Logins are not auto-filled in Private Browsing windows. You should still be able to autocomplete the password from the autocomplete dropdown on the username field (if one exists).
- Logins are not auto-filled on insecure
http:documents. Make sure all ancestor frames are
- Logins are not auto-filled in sandboxed documents e.g.
- If there are multiple username+password combinations saved for a domain and the username field wasn't pre-filled by the website, Firefox won't know which username/password to use and thus won't auto-fill. Use the autocomplete dropdown to choose the username you would like to use.
- If the page pre-fills a username field (e.g. using your session/local cookies or with a value attribute used as an old hack for placeholder text), Firefox won't fill in a password if the username field value doesn't match the one saved.
actionattribute is for a different origin than the one that the login was saved for.
HTTP Authentication popup not filled in
This is often due to the HTTP "Realm" being different from the stored login. The values the password manager is checking can be seen in the logging. Here's some example output from a successful sign in:
… LoginManagerPrompter: ===== promptAuth called ===== LoginManager: Searching for logins matching host: "https://intranet.mozilla.org", formSubmitURL: null, httpRealm: Mozilla Corporation - LDAP Login LoginManager: Checking if logins to "https://intranet.mozilla.org" can be saved. LoginManagerPrompter: Login unchanged, no further action needed. …