Firefox now supports the Freedesktop.org XDG Base Directory Specification.
O! M! G!
Nevermind, I use flatpak, which a great fix to programs that doesn't respect XDG. Ironically, flatpak itself doesn't respect XDG... https://github.com/flatpak/flatpak/issues/3997