IANAL, but it sounds questionable around anti-trust laws. Certainly not the first time Microsoft have run into problems with their browsers[^1].
[^1] https://www.cnet.com/news/eu-resolves-microsoft-ie-antitrust...