The codebase of Firefox, from which version 147 will be released on January 13, has been updated to default to the directory '~/.config/mozilla' for storing profiles, extensions, settings, and internal databases on Unix-like systems (the cache was previously moved to '~/.cache/mozilla'). This change was made to comply with the Freedesktop.org XDG Base Directory specification (the request for this change has been under consideration since 2004). The option to store data in the old directory '~/.mozilla' is preserved and can be activated by starting with the environment variable 'MOZ_LEGACY_HOME=1'.
Source: opennet.ru