Thanks for the bug report!
I tried to replicate it by loading the game with the latest version of firefox, but did not encounter the problem.
I checked a bit, and there's an open ticket on the godot and mozilla bug trackers that seems to relate to this problem.
I don't know if this will need to wait for a new version of Godot, or Firefox, but hopefully this will get fixed soon.