By the way,
<https://support.mozilla.org/en-US/questions/1443491>
"Firefox hangs after switching between virtual terminals (Linux)"
Ok, so I followed the recommendations from this page and disabled
hardware acceleration. It seems to fix the problem.
Indeed it did! Disabling hardware acceleration fixed this issue.
Thanks for the pointer!
systemd-logind revokes permissions to /dev/dri/* on change of active user.
This could be why the issue doesn't crop up when running through vnc /
xpra. Probably firefox doesn't use hardware acceleration when using
those x-servers.
I have no idea if your security model allows to add users to the "video"
groups, but as a side effect, I would expect higher probability of
crashes due to bugs in graphics drivers.
My user account was already a member of the "video" group. Shall have
to see if the disabled hardware acceleration has any noticeable effect
on performance.
Thanks,
Raj Kiran
.