I think this whole functionality is actually based on an experimental browser API (FedCM) that may be coming to other browsers as well.
https://developer.mozilla.org/en-US/docs/Web/API/FedCM_API
But ultimately websites can pop up whatever annoying nonsense they want. There isn't really any "way forward" except avoiding bad websites or using ad blockers.