Hacker News new | past | comments | ask | show | jobs | submit login

How is the user agent set? I'm trying out the free demo (free.cloudbrowser.xyz), and two different browsers (Chrome and Firefox) produce different and consistent user agents.



Both the user agent and navigator platform strings are mirrored from the client.


Could that cause any issues with browser-specific features? I'm not sure what browser/renderer you are actually using, but if I'm using something different, there could be a mismatch in advertised capabilities (through the user agent).


Yes, but generally, web apps detect features not browser versions, because UAs are already an unreliable signal of features, from long before BG.

Things like privacy extensions, screen readers, crawlers have various user agents.

At the same time, you make a good point. I'll consider your reflection if I come to re-decide if this is a sensible default.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: