keepassxc-browser
keepassxc-browser copied to clipboard
Locked symbol still displayed next to username fields in browser after unlocking database
##Current Behaviour When opening a page that has credential fields and the database is locked, the "keepass database locked" symbol is showed next to the username field. After unlocking the database, the locked symbol is still displayed . Only after a page reload the unlocked symbol is displayed.
Screenshot of locked symbol:
Expected Behavior
After unlocking the database, the correct symbol is showed next to the username on the current page. No page reload is necessary.
Steps to Reproduce (for bugs)
- Lock database
- Open any page with credential fields
- See the locked symbol next to the username field
- Click on the field to unlock the database
- See that still the locked symbol is displayed next to the username field, but credential filling is available
Debug info
KeePassXC - 2.7.1 KeePassXC-Browser - 1.7.12 Operating system: Win Browser: Chrome
Sometimes the "broadcast" messages like database-unlocked
are not retrieved properly (don't know why). This is why the status doesn't change on icons. I'll need to adjust the icon state update to a more reliable one.
I encountered a similar situation, and even if I reload the page, it still show the locked icon and the database is still locked.
This might have solved it https://github.com/keepassxreboot/keepassxc-browser/pull/1621. Test the current develop
branch if you can, thanks.
Still have the issue? It should be fixed.
I am experiencing the same problem as @ep0ns. I always need to reload login pages after unlocking a database.
Browser: Firefox 110 KeePassXC version: 2.7.4 Extension version: 1.8.5.1
@aumouvantsillage Anything in the JavaScript consoles?
@varjolintu Nothing in the JavaScript console.
Actually, I have misread the original bug report. In the steps to reproduce, it says "the locked symbol is displayed [...] but credential filling is available".
In my case:
- If I unlock the database by clicking on the button "Reopen the database" of the browser extension, everything works correctly.
- If I unlock the database from the KeePassXC window, the lock symbol disappears from the extension button in the toolbar, but there is still a lock symbol in the login form. Autofilling the credentials does not work.
@aumouvantsillage First this sounded like this but you are already using 2.7.4. And I remember I already fixed a bug like that in the extension. Does this happen right after reconnect? Does it matter if you refresh the web page and then unlock the database from KeePassXC?
Does this happen right after reconnect?
I'm not sure what "after reconnect" means in this context. I usually keep my computer on or in suspend mode. On wake-up, there are usually a few web sites where I need to login again. If the database is locked, I always need to refresh the page after unlocking.
Does it matter if you refresh the web page and then unlock the database from KeePassXC?
It makes no difference for me.
@aumouvantsillage Are you using Windows? It's a reported bug that suspend interferes with the connection.
No. I'm using Fedora 37.
You can try to kill keepassxc-proxy
and make a reconnect from the extension popup next time after you wake up from suspend.
KeePassXC - 2.7.6 KeePassXC-Browser - 1.8.8 Operating system: MacIntel Browser: Chrome/Chromium 116.0.0.0
Same issue is present for me too. If there any logs i could provide or help with debug. I'll gladly do it.