I haven't tested this code with old browsers but it works with everything fairly recent on Android, iOS, OS X, Windows and Linux. If all you care about is browsing, then Safari is good enough for you. Chrome loves storing lots of your web browsing data. If browser responsiveness is slowing, it’s time to drain the swamp. Why is my Chrome on Mac so slow Chrome is running slow. While Chrome is often praised for its flexibility and power features, Safari is the default Mac option that is fast, less taxing on your system, and more private. For example on iOS all browsers use the Safari/Webkit engine, so it's pointless to get "chrome" or "firefox" as browser name if the underlying renderer is in fact Safari/Webkit. Answer (1 of 2): Though Safari browser lacks the bells and whistles, it gets your job done. When it comes to web browsers on Mac, the choice often falls between two options: Chrome vs Safari. Though Safari is far from the worst browser out there, Mac users could also do so much better than Apples default browser.
Over the last couple of years, Apple has primarily worked on user privacy features and that has turned Safari into a heaven for privacy concerned users. Best Browser for Mac in 2022: Leaving Safari Behind. Not only the browser is fast but it is also pretty secure.
I don't know why the OP wanted to detect Safari, but in the rare case you need browser sniffing nowadays it's problably more important to detect the render engine than the name of the browser. If you use an iOS or macOS device, Safari is the best Google Chrome alternative that you can use.