Firefox lets you do this for each permissions category (notifications, camera/mic access, etc).
IIRC by default Firefox doesn't prompt you when sites request to send you notifications. But it's possible, i just set some configuration a long time ago and forgot about it
MS Teams already gives me a lot of push notifications during my work day, and if the browsers starts to do this, I will be overwhelmed with beeping nag-notifications.
Computer clutter is a distraction and lowers productivity.