Chrome on linux does the same sadly... prompts to be the default browser, never remembers the "no" option, and if you misclick the small 'x', it sets itself as the default again.
People have actually written apparmour configs to prevent that: https://sergei.nz/stop-google-chrome-from-hijacking-mimes/