Summary: | Safari lies. Reports itself as Mozilla, Gecko and KHTML too. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> | ||||
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED WONTFIX | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Nicholas Shanks
2006-06-20 01:29:58 PDT
Created attachment 8930 [details]
Better User-Agent headers
Comment on attachment 8930 [details]
Better User-Agent headers
I belive every single browser has Mozilla/ at the start. That is historical and is used all over the Web. I don't think we can dump that.
We also can't dump the (KHTML, like Gecko) portion, since that breaks numerous DHTML menus and frameworks.
This isn't something we like, but it also isn't optional. We have to work with the real world Web.
What Dave said. Even IE claims to be Mozilla. Well Opera uses "Opera/9.00 (Macintosh; PPC Mac OS X; U; en)" so :-P That's not entirely accurate. Opera may use "Opera" by default, but my understanding is that it masquerades as other browsers (using their exact UA strings -- much more extreme than just "Mozilla/...") on many sites that would break otherwise. So, it has a hard-coded list of sites to lie to? Well I could live with something like that in Safari. Maybe even in a text file the user can edit somewhere in */Application Support/Safari/ ? I mostly posted this for people to download and apply to their own builds, so I'm not that bothered by the review-, honestly :) To use a non-standard user agent, one can just set a Safari preference: defaults write com.apple.Safari CustomUserAgent "MyBrowser/1.0 (NewtonOS 10.4.7; en-US-blonde)" Disclaimer: I haven't tested this myself :) |