Further import a few changes from here: https://github.com/chaotic-aur/pkgbuild-firefox-hg/pull/10/files