7 ms·
Sometimes there are browser bugs that are impossible to do feature detection for, in which case have no better option than looking at the user agent. For insta
by dumbmatter 7y ago
Sometimes there are browser bugs that are impossible to do feature detection for, in which case have no better option than looking at the user agent.
For instance, several versions of Firefox had a serious bug in shared workers, which appeared intermittently when users opened your site in multiple tabs https://stackoverflow.com/questions/51092596/feature-detection-for-firefox-57-shared-worker-bug https://stackoverflow.com/questions/51092596/feature-detecti... - I had to use the user agent to work around this.
- EastSmith 7y agoSure, this is a fair use case. But then can't the browser tell the end user that someone wants to read this browser data so the user has a chance to say "no"?
- dredmorbius 7y agoChanging user-agent is virtually always possible, though a vanishingly small fraction of users will do so. Bundling into adblockers or browsers directly would help.