Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 4th January 2020
gustaf gustaf is offline
Fdisk Soldier
Join Date: Dec 2016
Posts: 69
Default Firefox 71.0 won't Open, Save, or Upload files

I'm having the same problem as acampbell (see post #8 in Chrome or Firefox).

Per jggimi's suggestion (see post #9 in Chrome or Firefox), both /tmp and ~/Downloads are ordinary directories. They are not symlinks.

From /usr/local/share/doc/pkg-readmes/firefox:
pledge(2) and unveil(2) Support
Firefox on OpenBSD is secured with pledge(2) and unveil(2) to limit
the system calls and filesystem access that each of Firefox's three
process types (main, content, and GPU) is permitted.  By default,
only ~/Downloads and /tmp can be written to when downloading files,
or when viewing local files as file:// URLs.

Files containing pledge promises and unveil paths and permissions
for each type of process are located in
Each file can be overridden by copying it to /etc/firefox/
and modifying it.
Viewing local files as file:// URLs works as expected. The default configuration gives me access to ~/Downloads and /tmp. Trying any other directory results in a "File not found" error.

Copying the configuration files to /etc/firefox and modifying them also worked:

# Make a firefox directory in /etc
cd /etc
doas mkdir firefox

# Copy firefox default config files to /etc/firefox
cd /usr/local/lib/firefox/browser/defaults/preferences
doas cp unveil.content unveil.main /etc/firefox

# Modify the copied config files
cd /etc/firefox
# Open unveil.content and unveil.main with a text editor; add the line
# ~/Firefox r 
# to each file

# Make a test directory containing a test file
cd $HOME
mkkdir Firefox
cd Firefox
vi FirefoxTEST.txt
# Type in some text and quit vi
After making these changes, I was able to view FirefoxTEST.txt by typing file:///home/gustaf/Firefox/FirefoxTEST.txt into the URL bar in Firefox.

So far, so good.

BUT, this does not work with any of the dialogue boxes (Open, Save, Upload, etc).

When I try, for example, to save a file with File > Save Page As..., clicking + Other Locations in the left pane of the dialog brings up Computer in the right pane. Clicking Computer makes the right pane go blank. In the dialog boxes, my entire filesystem is invisible to Firefox. Given the instructions in /usr/local/share/doc/pkg-readmes/firefox:
...By default, only ~/Downloads and /tmp can be written to when downloading files...
I would think that the dialog boxes would at least provide access to ~/Downloads and /tmp when clicking Computer.

Many thanks to anyone who can provide some insight.

Last edited by gustaf; 4th January 2020 at 09:33 AM. Reason: clarity
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp upload files using the (S)hell ershiba OpenBSD Installation and Upgrading 4 31st December 2012 04:53 PM
list open files - fstat? jsmith6134 OpenBSD General 3 2nd September 2011 03:11 AM
Can't open PDF files, FBSD 7.2-release Mantazz FreeBSD Ports and Packages 7 24th December 2009 01:10 PM
Firefox PROTIP: getting back to a normal Save As Dialogue. caesius Guides 5 15th October 2008 06:24 AM
How to view & open DOCX files in Ubuntu/OpenOffice. unixdude Other BSD and UNIX/UNIX-like 0 11th July 2008 08:38 AM

All times are GMT. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick