Score:3

How can I use "file://" URLs from my Firefox snap version?

cn flag

Local access to files via file:// seems no more possible outside the sandbox filesystem, the snap version of Firefox is referring to when one uses such URLs. Note that file:// URLs are allowed but they seem to point inside some kind of sandbox. I'm not familiar with the snap architecture, so excuse my jargon, but what I mean is, e.g., file:///usr/lib/jvm/... is of course not available in the sandbox system but only on my root file system.

Solutions circumventing access security policies wouldn't work because of that construction. In fact, the Mozilla support website recommends to install the plain FF package. Further issues filed suggest that this is not optimal for other reasons and that there is no obvious solution. (I, e.g., need that feature because my Java IDE uses file:// URLs to direct me to the local Java API docs, but there are many other applications that would expect such access to work.)

My question, hence, is, can I use file:// URLs to access my root file system as usual with the Firefox snap version without the need to switch back to the FF deb version and without the need to circumvent security policies, e.g., in about:config?

Score:0
kr flag

IMHO it has nothing to do with the snap version. The current firefox versions disable the access to local files (both snap and deb) and you have to allow this explicitly for specific websites, e.g with an entry in /etc/firefox/policies/policies.json.

I hope this helps.

Mario avatar
cn flag
Thanks, @Michael, for your answer. You're absolutely right. I was perhaps unclear: even if you adjust the Firefox settings, you need to get access to the outside file system where the whole bunch of other packages' files are located. E.g. JDK documentation in my case or whatever other applications you like. So, the problem is really that the snap sandbox scheme has the expected pros and, apparently, quite a few really nasty cons. :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.