Firefox is a snap by default in Ubuntu 22.04. Chromium is a snap since 20.04, I think. Maybe it's time to add support for snapped browsers?