Bug 500854

Summary: Add support for auto-completing passwords for multiple accounts on same server
Product: [Applications] Falkon Reporter: Matthias Kretz <kretz>
Component: extensionsAssignee: Unassigned bugs <unassigned-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: jurajoravec
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthias Kretz 2025-02-28 08:27:21 UTC
SUMMARY
Falkon should auto-complete passwords matching the Username and provide a UI to select any password associated with this Server.

STEPS TO REPRODUCE
1. Open https://accounts.google.com/
2. Log in with login1 and press "remember password"
3. Log out
4. Log in with login2 and press "remember password"
5. Log out
6. Log in with login1

OBSERVED RESULT
The password from login2 is automatically entered into the password field. There is no UI to select the right password other than copy and paste from the Preferences dialog.
Both logins & passwords are stored in the Password Manager (as visible in the Preferences dialog).

EXPECTED RESULT
Recognize the username and auto-complete the matching password. Also provide a UI on the password input field to select any password associated with this Server.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.3
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Comment 1 Juraj 2025-03-01 07:24:27 UTC
Hello,

There is a selector in the location bar when the passwords are stored for the given site, click on it and the menu with saved credentials will show up and you can select the one you wish.
Comment 2 Matthias Kretz 2025-03-01 12:30:18 UTC
Thanks, I did not notice that icon. FWIW, I believe it is not discoverable enough. I really like how Firefox solves it by showing a drop-down on the login field. Maybe, if there are multiple logins for a web page Falkon could automatically open the drop-down from the selector when it auto-completes the username/password fields?

With the selector it now works for google.com. But it could be better. On Firefox, after "Choose an account" it automatically fills in the matching password for the username. Falkon doesn't do that and requires additional interaction with the selector in the location bar.

I've now tested multiple logins also on connect.garmin.com and my local Nextcloud instance. Both work as expected with a single username/password. But as soon as there are two accounts, the "sign in" button of the web page is disabled. I have to e.g. enter a space and delete it again on both text fields to get the button enabled. This issue happens both for the initial auto-filled username/password and if I select a different login via the selector in the location bar.
Comment 3 Juraj 2025-03-01 15:20:35 UTC
Hello,

> I believe it is not discoverable enough.
I can agree that it is not super visible. (hey, I found it :D ).
So this is a request for a redesign of this feature.

Firefox (mobile at least) displays a kind of a status bar at the bottom of the webpage viewport wehn there are store passwords/credentials on the page.

> With the selector it now works for google.com. But it could be better.
> On Firefox, after "Choose an account" it automatically fills in the matching
> password for the username. Falkon doesn't do that and requires additional
> interaction with the selector in the location bar.

If you mean the google way to select profiles/accounts I do not see a good way to interface with it in general. I think it would require a per site solution and that is very costly on time and testing. (it may often break)

> I have to e.g. enter a space and delete it again on both text fields to get
> the button enabled. This issue happens both for the initial auto-filled
> username/password and if I select a different login via the selector in the location bar.

This looks like some javascript is waiting for keyboard or mouse events and allows login only when some key was pressed. This could be investigated and some keyboard event could be emitted when the credentials are filled.

I would like to keep this feature request open, if you do not mind.
Thank you for understanding.
Comment 4 Matthias Kretz 2025-03-01 15:31:00 UTC
(In reply to Juraj from comment #3)
> > With the selector it now works for google.com. But it could be better.
> > On Firefox, after "Choose an account" it automatically fills in the matching
> > password for the username. Falkon doesn't do that and requires additional
> > interaction with the selector in the location bar.
> 
> If you mean the google way to select profiles/accounts I do not see a good
> way to interface with it in general. I think it would require a per site
> solution and that is very costly on time and testing. (it may often break)

Falkon is already able to store the username together with the password. So it knows the username already (somehow). Seems like the necessary logic must already exist.

> > I have to e.g. enter a space and delete it again on both text fields to get
> > the button enabled. This issue happens both for the initial auto-filled
> > username/password and if I select a different login via the selector in the location bar.
> 
> This looks like some javascript is waiting for keyboard or mouse events and
> allows login only when some key was pressed. This could be investigated and
> some keyboard event could be emitted when the credentials are filled.

Note that it works if there is only a single username/password stored for these pages. Again the correct form-fill code apparently exists but something goes wrong when there are multiple logins.

> I would like to keep this feature request open, if you do not mind.
> Thank you for understanding.

Sure.