For security reasons, Firefox and other browsers block local file: URLs like file:///tmp/foo.html that are linked from external web pages. That makes sense to me. But it also blocks access to file: URLs like file:///tmp/foo.html when I manually paste them into the address bar, or link them from another local file such as file:///tmp/bar.html , which would not be a security risk. I also cannot right-click on a local HTML file and open it in Firefox to preview it, which is ridiculously frustrating. Furthermore -- and contradictorily -- Firefox allows me to set my home page to file:///tmp/foo.html , but it does not allow me to set my "new tab" page to file:///tmp/foo.html . An extension exists to address the "new tab" problem, but it does not address the rest of these restrictions.
How can I enable Firefox to display file: URLs that are referenced only from other file: URLs, typed into the address bar, opened locally by right-click from the file manager, or specified as my "new tab" page?
This page says I can disable that security check for specific sites, but I do not know how to specify my local file system as a "site".
Output of lsusb command and uname, in case that helps:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 004: ID 0e8d:e025 MediaTek Inc. Wireless_Device
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
$ uname -a
Linux [redacted] 6.17.0-1012-oem #12-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 10 04:51:46 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux