/usr/lib/firefox is the supported folder for things like https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig (link from https://support.mozilla.org/en-US/questions/1338468)
It doesn’t need to be re-applied on apt based Firefox updates.