It can read proxy settings from gsettings, but IMO the gtk2 dependency is not worth it. Maybe drop it? ref: https://bugs.archlinux.org/task/59992
I think this won't allow removal of gtk2 dep because it's still needed for the old NPAPI plugin support, which won't go away until 2020: https://developer.mozilla.org/en-US/docs/Plugins/Roadmap
A commit references this bug: Author: jbeich Date: Thu Sep 5 11:25:54 UTC 2019 New revision: 511176 URL: https://svnweb.freebsd.org/changeset/ports/511176 Log: gecko: don't require gconf on non-Gnome2 desktops Take advantage of lazy bindings by not requiring runtime dependency. DBus is required under Wayland (Gecko-specific) and for MIME handling but GConf2 is useless outside of Gnome2. So, only use GConf2 if it's already installed (similar to PulseAudio). PR: 240323 Changes: head/Mk/bsd.gecko.mk head/mail/thunderbird/Makefile head/www/firefox/Makefile head/www/firefox-esr/Makefile
A commit references this bug: Author: jbeich Date: Thu Sep 5 11:27:14 UTC 2019 New revision: 511178 URL: https://svnweb.freebsd.org/changeset/ports/511178 Log: MFH: r511176 gecko: don't require gconf on non-Gnome2 desktops Take advantage of lazy bindings by not requiring runtime dependency. DBus is required under Wayland (Gecko-specific) and for MIME handling but GConf2 is useless outside of Gnome2. So, only use GConf2 if it's already installed (similar to PulseAudio). PR: 240323 Approved by: ports-secteam blanket Changes: _U branches/2019Q3/ branches/2019Q3/Mk/bsd.gecko.mk branches/2019Q3/mail/thunderbird/Makefile branches/2019Q3/www/firefox/Makefile branches/2019Q3/www/firefox-esr/Makefile
ports r454672 intended build-only dependency but gave up due to USE_GNOME deficiency. Otherwise, let's wait for upstream to drop NPAPI. Anything else? If not close the bug.
Regarding Wayland. Firefox worked fine without DBus sometime ago but upstream isn't interested[1] in such a configuration, so it broke sometime between Firefox 60 and 68. Gtk developers are also not interested[2]. OTOH, wlroots developers aren't interested[3] in DBus dependency. Not sure about Qt5 but FreeBSD package currently depends on DBus unconditionally. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1506079#c1 [2] https://bugzilla.gnome.org/show_bug.cgi?id=677491#c43 [3] https://github.com/swaywm/wlroots/issues/1178#issuecomment-454241899
GCONF is gone after ports r535268.