3
edits
m (→HTTP Authentication popup not filled in: remove ns prefix) |
(Add a new reason for why logins are not autofilled. See https://bugzilla.mozilla.org/show_bug.cgi?id=786276 for more details.) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The password manager in Firefox includes the ability to log debugging information to the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console Browser Console], which can be enabled to help diagnose problems. This logging is off by default. Passwords are not shown in the output. | The password manager in Firefox includes the ability to log debugging information to the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console 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 = | = Gathering Debug Logs = | ||
[https://drive.google.com/file/d/1P94qZvQc3FkLiwhrmEYTSweCGt09ef97/preview Follow the instructions in this video] or the written steps in both sections below. | |||
== Enable Debug Logging == | |||
<ol> | |||
<li>Enter "about:config" in the URL bar.</li> | |||
<li>You may see a warning screen cautioning you about changing advanced preferences. Click the button to ignore the warning.</li> | |||
<li> | |||
Make sure '''''all''''' of the following prefs are set to 'true'. (Find a pref by entering its name in the "Filter" box at the top of the page. Toggle its value by either clicking the ⇌ (Toggle) icon or double-clicking the line.) | |||
<blockquote>signon.debug<br/>devtools.browserconsole.contentMessages<br/>devtools.browserconsole.filter.error<br/>devtools.browserconsole.filter.warn<br/>devtools.browserconsole.filter.info<br/>devtools.browserconsole.filter.log<br/>devtools.browserconsole.filter.debug<br/></blockquote> | |||
</li> | |||
<li>Restart Firefox</li> | |||
</ol> | |||
= View the Logging = | == View the Logging == | ||
# To view the logging, open the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console 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. | # To view the logging, open the [https://developer.mozilla.org/en-US/docs/Tools/Browser_Console '''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 | #* '''Note that the above consoles are different than the Web Console that you use for regular web development.''' | ||
# Make sure the log level toggles ("Errors", "Warnings", "Logs", …, "Debug") are all enabled 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: | # Load the problematic web (or about:logins) page in in the browser. You should see messages in the Browser Console like: | ||
LoginManagerContent: onDOMFormHasPassword for <nowiki>https://www.google.com</nowiki> | LoginManagerContent: onDOMFormHasPassword for <nowiki>https://www.google.com</nowiki> | ||
Line 27: | Line 36: | ||
* 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 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. | * 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. | ||
* The <code><form></code>'s <code>action</code> attribute is for a different origin than the <code>action</code> origin that the login was saved for. | |||
* The field is <code>disabled</code> or <code>readonly</code> | |||
* The username or password doesn't fit within the <code>maxlength</code> | |||
* The password field for the form has the <code>autocomplete</code> attribute with a value of <code>"new-password"</code> | |||
* There are more than 5 password fields in the "form". | |||
* The login form is loaded into a subframe (e.g. an <code><iframe></code>), and it is cross-origin (i.e. not [https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy same-origin]) with the top level frame. | |||
== HTTP Authentication popup not filled in == | == HTTP Authentication popup not filled in == | ||
Line 37: | Line 52: | ||
LoginManagerPrompter: Login unchanged, no further action needed. | LoginManagerPrompter: Login unchanged, no further action needed. | ||
… | … | ||
== Won't prompt to save a password == | |||
Potential reasons for not getting a prompt to save: | |||
* The password is already saved. Check about:logins to see if it's already there | |||
* Make sure "Ask to save logins and passwords for websites." is check in about:preferences#privacy-logins | |||
* Make sure the website isn't in the "Exceptions…" list of about:preferences#privacy-logins | |||
* If you are in a private window, the prompt may be dismissed by default and not pop up automatically. |
edits