belaviyo / keepass-macpass-helper

A helper extension to use KeePass/MacPass/KeePassXC from Firefox, Opera, and Chrome browsers
https://webextension.org/listing/keepass-helper.html
Mozilla Public License 2.0
101 stars 28 forks source link

Cannot Connect To KeePass After Reinstall #27

Open vivienney opened 5 years ago

vivienney commented 5 years ago

I have used KeePassHelper with Chrome for a year and it has worked. However, I switched from Chrome Web Store version to packaging the extention myself. Since then I cannot get KeePassHelper to connect to KeyPass via KeePassHttp. I can confirm that I have entered the correct settings for KeePassHttp such as port. I have created new Chrome profile and I was able to connect to KeePassHttp but I cannot connect using the old profile. I am not sure what is going on. I get no error that explains what is the issue instead the orange wheel just keeps rotating.

Any help or advice would be appreciated.

belaviyo commented 5 years ago

Open your KeePass application and delete the sharing token. If it doesn't work, try:

Go to chrome://extensions and open the background page for this extension, then go to the network tab. When the extension tries to connect to the native side, it sends multiple HTTP requests to the KeePassHttp plug-in. You can see the responses. See if you see any error message in the responses.

vivienney commented 5 years ago

It turns out the issue was related to iframes. Once I disabled the iframes option, I was able to connect to KeePassHttp. With iframes enabled. I receive the following error:

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

In order to fix this security exception, I needed to disable the Block third-party cookies option. However, due to this security exception, I couldn't connect to KeePassHttp and ended up with a rotating orange wheel:

screenshot

Quick question: Is there a way to centre the panel horizontally without having the iframes option enabled? I prefer to block third-party cookies but still would like to have the panel centered.

belaviyo commented 5 years ago

I needed to disable the Block third-party cookies option

In Google Chrome if I enable this option, still the popup works. Are you sure this is the preference that causing the issue? It looks like you have somehow disabled the local storage access in the extension context.

vivienney commented 5 years ago

In the past, I was able to use both iframes and the Block third-party cookies option at the same time but for some odd reasons it stopped working. Now when I enable both iframes and the Block third-party cookies option, I receive the local storage access error. The screenshot for which I posted above. The popup simply shows an endless loop of rotating orange wheel. I'm using ungoogled chromium 67.0.3396.87.

belaviyo commented 5 years ago

Since I am not able to reproduce, I've pushed a possible fix for this. Please wait for the next release and let me know if the issue is solved or not

gamedevsam commented 4 years ago

I recommend closing this issue, it's gone dormant.