Where do the private keys reside in this scenario?
Only on the second case does the browser extension handle primitives like private keys and in no scenario do they get exposed to a site.
The more common crypto-thefts are phishing (user gives away their recovery phrase) or malware (scanning for on-device keys and recovery phrases).