I noticed in the last day or two that the Firefox snap is not able to download anything anymore. I can replicate this issue on two different PCs.
My Firefox snap version is 77.0.1-1 and here are my Firefox connections:
Interface Plug Slot Notes
avahi-observe firefox:avahi-observe :avahi-observe -
browser-support firefox:browser-sandbox :browser-support -
camera firefox:camera :camera -
content[gnome-3-34-1804] firefox:gnome-3-34-1804 gnome-3-34-1804:gnome-3-34-1804 -
content[gtk-3-themes] firefox:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] firefox:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] firefox:sound-themes gtk-common-themes:sound-themes -
cups-control firefox:cups-control :cups-control -
dbus - firefox:dbus-daemon -
desktop firefox:desktop :desktop -
desktop-legacy firefox:desktop-legacy :desktop-legacy -
gsettings firefox:gsettings :gsettings -
home firefox:home :home -
joystick firefox:joystick - -
network firefox:network :network -
network-observe firefox:network-observe - -
opengl firefox:opengl :opengl -
pulseaudio firefox:pulseaudio :pulseaudio -
removable-media firefox:removable-media :removable-media manual
screen-inhibit-control firefox:screen-inhibit-control :screen-inhibit-control -
u2f-devices firefox:u2f-devices :u2f-devices -
unity7 firefox:unity7 :unity7 -
upower-observe firefox:upower-observe :upower-observe -
wayland firefox:wayland :wayland -
x11 firefox:x11 :x11 -
Here are my current system specs:
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 4.15.0-106-generic
Uptime: 14h 9m
Packages: 4367
Shell: zsh 5.4.2
Resolution: 3840x1200
DE: XFCE
WM: Xfwm4
WM Theme: Default
GTK Theme: Xfce-dusk [GTK2]
Icon Theme: elementary-xfce-darker
Font: Noto Sans 9
CPU: Intel Core i7-5960X @ 16x 4.3GHz [49.0°C]
GPU: GeForce GTX 1070
RAM: 9354MiB / 32081MiB
I opened Firefox in the terminal and it outputs this, even though the file does exist:
Sandbox: /tmp/.X11-unix/X0 is inaccessible (No such file or directory); can't isolate network namespace in content processes
When I attempted to save a file, I got this output:
Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
After I fixed that error by installing xdg-desktop-portal:
sudo apt install xdg-desktop-portal
I now get a different error when attempting to save a file with Firefox, here is the output:
(firefox:8432): Gtk-WARNING **: 10:26:41.623: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.1029" (uid=1000 pid=8432 comm="/snap/firefox/372/firefox " label="snap.firefox.firefox (enforce)") interface="org.freedesktop.portal.FileChooser" member="SaveFile" error name="(unset)" requested_reply="0" destination="org.freedesktop.portal.Desktop" (bus)