Hi,
since the latest update to Firefox 84 (on Ubuntu 20.04 LTS, 64-bit) I noticed a conflict between the Nitrokey Pro and one of my Firefox profiles (nitrokey-app and pcscd running):
Nitrokey is not plugged in: Firefox works as usual
Insert Nitrokey: Firefox hangs when trying to re-load a web page, the spinner is active, and the window is not being refreshed. The only option is to kill Firefox.
When Firefox is started when the Nitrokey is plugged in, the main window is created, but no contents at all is rendered. Again Firefox must be killed.
Launching Firefox with the option --safe-mode works fine but…
… manually disabling all extensions and launching Firefox doesn’t.
The effect does not occur with other profiles, nor with the Tor browser. I guess I could just create a new profile, but I don’t want to lose my bookmarks, history etc. etc. Any idea what could hang Firefox, and how could I clean my profile?
Thanks in advance, Albrecht.
Thanks a lot, but neither opensc had been installed, nor the security devices were activated… Finally, I create a new profile and managed to copy all settings, bookmarks and history – and the interference is gone. Very strange!
That’s pretty strange - can you modify the command below and replace /home/saper/.mozilla/firefox/i5bsx0ng.xbox with a full path to non-working Firefox profile directory?
Unfortunately, I erased the old Firefox profile folder after successfully configuring the new one, so I cannot test this any more. However, my “broken” profile was actually very old (probably more than 10 years) and thus went through a plethora of upgrades.
As using the new profile with exactly the same extensions and Firefox settings does work just fine with the Nitrokey, I am pretty sure that Firefox is to blame for the hang.
I think I observe this too, on Windows though. This is my test VM, relatively recent, so not that old. And indeed it looks like FF picks up the OpenSC installation (that I also have on that VM) and tries to use the token as soon as it’s inserted, though it’s somewhat intermittent, so sometimes it conflicts with e.g. NitrokeyApp and sometimes it doesn’t.
Here’s how it looks like upon inserting the key:
ADDED LATER:
And if I remove (“Unload”) the detected OpenSC modules, the problem seems to go away. Funny enough, there’s a ~15 year-old bug in FF Bugzilla about something like that, where just 5 days ago developers asked if it could be closed : https://bugzilla.mozilla.org/show_bug.cgi?id=318546.
Another data point: I think I have reproduced it myself with my Firefox (83 or 84) on Linux Fedora, while making load tests on Nitrokey HSM. Other browsers though, including Firefox Nightly 86 run concurrently, were not affected.