Does it though? I use Windows and this has not been my experience for many years. There was a time, quite some time ago, when resetting the default browser was pretty common.
Do you know of a reproducible way to trigger either of your examples on Windows?