mozilla / multi-account-containers

Firefox Multi-Account Containers lets you keep parts of your online life separated into color-coded tabs that preserve your privacy. Cookies are separated by container, allowing you to use the web with multiple identities or accounts simultaneously.
https://addons.mozilla.org/firefox/addon/multi-account-containers/
Mozilla Public License 2.0
2.64k stars 323 forks source link

Keepassxc browser passkey doesn't work with one of the containers #2636

Closed Ajnasz closed 1 month ago

Ajnasz commented 1 month ago

Before submitting a bug report

Step to reproduce

  1. I opened github within my Work container
    1. I try to log in with a passkey
    2. I get an Authentication failed error message
    3. In the console I can see Permission denied to access property "then" error message
  2. I open github within another conainer
    1. I try to log in with a passkey
    2. I log in successfully

Actual behavior

I can't log in with passkey in the Work container

Expected behavior

I can log in with any container

Additional informations

I reported the issue to the keepassxc-browser extension, before I tried to log in with another container: https://github.com/keepassxreboot/keepassxc-browser/issues/2193 What is written there, that the data which would be used by the keepassxc extension is some kind of Restricted object, which can't be accessed.

I would be happy to debug this issue, because most probably it's a misconfiguration only on my side. If you can help me how can I dump the configurations of the containers I can compare them to see what could be wrong.

Please also share if you know a way how I can copy the sites from the affected container to a new one, so I wouldn't need to setup everything if I can't solve the issue.

Provide a copy of Troubleshooting Information page (optional)

No response

Ajnasz commented 1 month ago

I figured out the issue and it turned out that the issue was that my user agent was changed to chrome in the container, so the isFirefox() function returned false, so the firefox specific code was never called.