Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit Topic is solved

This board is for discussions, bug reports, etc. for pre-releases of the v27 milestone codenamed "Tycho".

Since the beta phase is over, this board is closed for new posts/topics.
coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by coffeebreak » 2016-07-18, 18:35

V27 does not offer the opportunity to save passwords:

-Check the preference "Remember passwords for sites";
-Click on the Pale Moon forum login link;
-You expect to be asked if you want to save the password;
-However there is no dialog asking this, and in fact no password is saved.

There's no problem logging in, there'just no saving or opportunity to save.

The profile folder doesn't contain 'logins.json' (or 'signons.sqlite').

Did see this (where looks like such issues were believed fixed?): https://github.com/MoonchildProductions/Tycho/issues/35

Using W7 x86.

Edit:
Updated the thread title.
Last edited by coffeebreak on 2016-07-21, 12:17, edited 1 time in total.

New Tobin Paradigm

Re: Passwords cannot be saved

Unread post by New Tobin Paradigm » 2016-07-18, 18:39

It is working for me.. I just recently saved my login at a few places.. Also, you can test with this http://keepass.info/help/kb/testform.html

Try flipping signon.debug to true in about:config and checking the Messages in the Error Console.

Should look something similar to this:

Code: Select all

Login Manager (content): onFormPassword for http://keepass.info/help/kb/testform.html
Login Manager: Counting logins matching host: http://keepass.info formSubmitURL:  httpRealm: null
Login Manager: Searching for logins matching host: http://keepass.info formSubmitURL: javascript: httpRealm: null
Login Manager (content): Multiple logins for form, so not filling any.
Login Manager: AutoCompleteSearch invoked. Search is: 
Login Manager (parent): Creating new autocomplete search result.
Login Manager: Searching for logins matching host: http://keepass.info formSubmitURL: javascript: httpRealm: null
Login Manager (content): onUsernameInput from DOMAutoComplete
Login Manager: Counting logins matching host: http://keepass.info formSubmitURL:  httpRealm: null
Login Manager: Searching for logins matching host: http://keepass.info formSubmitURL: javascript: httpRealm: null
Login Manager (content): observer notified for form submission.
Login Manager: Checking if logins to http://keepass.info can be saved.
Login Manager: Searching for logins matching host: http://keepass.info formSubmitURL: javascript: httpRealm: null
Pwmgr Prompter: ===== initialized =====
Login Manager: Searching for logins matching host: http://keepass.info formSubmitURL: javascript: httpRealm: null
Login Manager: Adding login

dark_moon

Re: Passwords cannot be saved

Unread post by dark_moon » 2016-07-18, 18:46

Works for me too.

Walter Dnes
Astronaut
Astronaut
Posts: 699
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Passwords cannot be saved

Unread post by Walter Dnes » 2016-07-18, 20:18

coffeebreak wrote:V27 does not offer the opportunity to save passwords:

-Check the preference "Remember passwords for sites";
-Click on the Pale Moon forum login link;
-You expect to be asked if you want to save the password;
-However there is no dialog asking this, and in fact no password is saved.

There's no problem logging in, there'just no saving or opportunity to save.
I ran into a similar problem in linux alpha (I build my own). SOME sites forgot saved passwords, and did not ask to save when logging in manually. The solution was to delete all passwords in the troublesome profile. Next time I logged on, the "save password" dialogue came up. And the user-id and password are now pre-filled-in when I go to those sites.
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Passwords cannot be saved

Unread post by coffeebreak » 2016-07-18, 21:11

Walter Dnes wrote:The solution was to delete all passwords in the troublesome profile.
Thank you for this idea. No passwords had ever been saved in this profile though, so there was nothing to delete.

Tobin, password-saving did work in a freshly set up copy of v27, so will have to poke around and try to figure out what broke it.

Just for info, it wasn't working in safe mode either.
This was in the Error console with debug turned on:

Code: Select all

Login Manager (content): onFormPassword for https://forum.palemoon.org/index.php
Login Manager (content): onFormPassword for https://forum.palemoon.org/ucp.php?mode=login
Login Manager (content): onUsernameInput from DOMAutoComplete
Login Manager (content): observer notified for form submission.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37538
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Passwords cannot be saved

Unread post by Moonchild » 2016-07-18, 21:53

My guess is that the silly changeover and conversion from sqlite to json (thanks for that, Mozilla) screwed up somewhere unknown.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by coffeebreak » 2016-07-20, 20:49

Turns out that if I clear "Browsing & Download History" when quitting the browser, the login manager stops saving or recalling passwords. Any passwords that were previously saved don't get deleted (they're visible in there), they're just not recalled.

After doing the above, if I deselect the box to clear "Browsing & Download History" and restart again, it apparently resets something and the login manager will once more save and recall passwords (until the next time browsing/download history is cleared on exit). Previously saved passwords were not deleted by this "reset" (so long as "Saved Passwords" was not also selected).

All of this occurred only if clearing history on EXIT: Clearing recent history did not cause a similar effect.

Both results were reproducible for me, every time.


[/b]

Results from error console, debug on. (Had previously saved password for / logged out from PM forum):

Checked box to clear all "Browsing & Download History" on browser's exit;
Restarted:

Code: Select all

Login Manager: No alternate nsILoginManagerStorage registered
PwMgr json: Opening database at C:\*******\User\Palemoon\Profiles\Default\logins.json
Opened Login Manager; clicked "Saved Passwords": previously saved entry still visible:

Code: Select all

Login Manager: Getting a list of all logins
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _getAllLogins: returning 1 logins.


Opened tab: forum.palemoon.org;
Clicked login link;
Username + Password fields were not filled in:

Code: Select all

Login Manager (content): onFormPassword for https://forum.palemoon.org/ucp.php?mode=login


Logged in; was not asked to [re]save password:

Code: Select all

Login Manager (content): onUsernameInput from DOMAutoComplete
Login Manager (content): observer notified for form submission.


Logged out:

Code: Select all

Login Manager (content): onFormPassword for https://forum.palemoon.org/index.php?sid=*********
Closed tab: forum.palemoon.org;
Opened Login Manager; clicked "Saved Passwords": previously saved entry still visible:

Code: Select all

Login Manager: Getting a list of all logins
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _getAllLogins: returning 1 logins.

Console results after restart with clear "Browsing & Download History" deselected:

Unchecked the box to clear all "Browsing & Download History" on browser's exit;
Restarted:

Code: Select all

Could not read chrome manifest 'file:///C:/********/Bin/Palemoon/chrome.manifest'.
Could not read chrome manifest 'file:///C:/*****/Bin/Palemoon/browser/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'.
Login Manager: No alternate nsILoginManagerStorage registered
PwMgr json: Opening database at C:\********\User\Palemoon\Profiles\Default\logins.json
Opened Login Manager; clicked "Saved Passwords": previously saved entry still visible:

Code: Select all

Login Manager: Getting a list of all logins
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _getAllLogins: returning 1 logins.
Opened tab: forum.palemoon.org:

Code: Select all

Login Manager (content): onFormPassword for http://forum.palemoon.org/
Login Manager: Counting logins matching host: http://forum.palemoon.org formSubmitURL:  http Realm: null
PwMgr json: _searchLogins: returning 0 logins
PwMgr json: _countLogins: counted logins: 0
Clicked login link; Username + Password fields were once again filled in:

Code: Select all

Login Manager (content): onFormPassword for https://forum.palemoon.org/ucp.php?mode=login
Login Manager: Counting logins matching host: https://forum.palemoon.org formSubmitURL:  httpRealm: null
PwMgr json: _searchLogins: returning 1 logins
PwMgr json: _countLogins: counted logins: 1
Login Manager: Searching for logins matching host: https://forum.palemoon.org formSubmitURL: 
https://forum.palemoon.org http Realm: null
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _findLogins: returning 1 logins
Proceeded to login which worked as expected:

Code: Select all

Login Manager (content): observer notified for form submission.
PwMgr json: Getting login saving is enabled for https://forum.palemoon.org
Login Manager: Searching for logins matching host: https://forum.palemoon.org formSubmitURL: 
https://forum.palemoon.org http Realm: null
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _findLogins: returning 1 logins
Login Manager (parent): Found an existing login matching this form submission
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
Logged out:

Code: Select all

Login Manager (content): onFormPassword for https://forum.palemoon.org/index.php?sid=*********
Login Manager: Counting logins matching host: https://forum.palemoon.org formSubmitURL:  httpRealm: null
PwMgr json: _searchLogins: returning 1 logins
PwMgr json: _countLogins: counted logins: 1
Login Manager: Searching for logins matching host: https://forum.palemoon.org formSubmitURL: 
https://forum.palemoon.org http Realm: null
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _findLogins: returning 1 logins
Again --
Opened Login Manager; clicked "Saved Passwords": saved entry still visible:

Code: Select all

Login Manager: Getting a list of all logins
PwMgr json: _searchLogins: returning 1 logins
PwMgr cryptoSDR: SDR slot status is 5
PwMgr cryptoSDR: SDR slot status is 5
PwMgr json: _getAllLogins: returning 1 logins.

GMforker

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by GMforker » 2016-10-16, 15:53

You can test the new version (after a new version - 27.0.0b3 - is released).

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by coffeebreak » 2016-10-20, 16:50

Please see this post, which also applies to this thread.

Walter Dnes
Astronaut
Astronaut
Posts: 699
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by Walter Dnes » 2016-10-20, 20:50

You can achieve the same effect, with more fine-grained control, by selecting...
Edit ==>
Preferences ==>
Privacy ==>

Select "Use custom settings for history"
Checkmark "Clear history when New Moon closes"
Click on the "Settings" button at the bottom right

This brings up "Settings for Clearing History" dialogue
Checkmark everything you want deleted/cleared on exit
I do NOT check "Saved Passwords" or "Site Preferences".
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by coffeebreak » 2016-10-20, 23:50

Walter Dnes,
Thank you for your post, but... I'm not sure why you posted this.
Were you responding to my most recent post just above?

It links to a post I made in another thread which also applies here.

And which for clarity's sake, also quote:
coffeebreak wrote:I have not encountered any problems connected with sanitizing on shutdown for a while and believe, as predicted by Moonchild, that this and related issues must have been cleared up by the work done on the download manager. This holds as well for this thread (re saving/recalling passwords) and this post (concerning display of the file storage tab in GMX webmail).

Walter Dnes
Astronaut
Astronaut
Posts: 699
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by Walter Dnes » 2016-10-21, 03:12

coffeebreak wrote:Walter Dnes,
Thank you for your post, but... I'm not sure why you posted this.
Were you responding to my most recent post just above?
I was merely suggesting a workaround to the problem. Actually, it sort of makes sense that passwords are part of history, and clearing history entirely clears saved passwords.
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Passwords cannot be saved/recalled if 'Browsing & Download History' is cleared on exit

Unread post by coffeebreak » 2016-10-21, 11:28

Don't know where you got the idea that I was "clearing history entirely".

The preference to clear "Browsing & Download History" is one of the custom settings choices when you "Use custom settings for history".

The issue described in this thread was triggered by selecting to clear "Browsing & Download History" when using custom settings for clearing history on browser's exit, while "Saved Passwords" (and "Site Preferences" incidentally) were not selected. See above.
Walter Dnes wrote:Actually, it sort of makes sense that passwords are part of history, and clearing history entirely clears saved passwords.

The default prefs don't/are not designed to do this.
I Just took a peek at the defaults in a fresh profile (first in about:config; then in the front UI with custom settings exposed -- they were consistent with each other). "Browsing & Download History" is checked; "Saved Passwords" (and "Site Preferences") are not checked.
Here's what you see in the not-yet-customized user-facing UI:
defaultCustomSanitize.png
Passwords will not be deleted even with these out-of-the-box sanitize settings.

In any case, as mentioned earlier, work done on the download manager has resolved the problem.
You do not have the required permissions to view the files attached to this post.