In Ubuntu 21.10, Firefox 93.0 can't open a file in a hidden directory like /home/alba/.toto/0000000d.html.
(Whatever the name and content of the HTML file, you can use an empty file.)
Nor does Chromium 95.0.4638.54 snap but Dillo version 3.0.5 and Google Chrome 90.0.4430.93 can do it.
In 21.04, Firefox 93.0, Dillo 3.0.5 and Google Chrome 90.0.4430.93 can do it, only Chromium 94.0.446.71 snap cannot, so this is a regression.
Can you confirm? Is it worth reporting a bug? Is it Firefox or Ubuntu bug?
I found this by using Claws Mails that stores HTML mail files in ~/.claws-mail/.
More simply
Checked with Ubuntu 22.04.
Take any HTML file named index.html that Firefox or Chromium can open. Rename it with a leading dot .index.html, then Firefox or Chromium cannot open it. Firefox error message (in window) :
Access to the file was denied
The file at /home/me/.index.html is not readable.
It may have been removed, moved, or file permissions may be preventing access.
With or without dot, the Failed to load module "canberra-gtk-module" error also occurs in Terminal so it is probably not the cause.
% snap list
chromium 101.0.4951.41
firefox 99.0.1-1
dillo has no problem.