WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED WORKSFORME
18295
Include major OS revision in user agent
https://bugs.webkit.org/show_bug.cgi?id=18295
Summary
Include major OS revision in user agent
Tom
Reported
2008-04-02 23:17:06 PDT
Version 3.1 (5525.13) To achieve parity with the upcoming Firefox 3, Safari should have the major OS revision in the user agent. This can be helpful to the user in many areas, such as if a site had a download for Tiger, and a newer version for Leopard that includes new technologies not available in Tiger, by detecting the user is on Tiger they can opt to suggest the proper download (much like www.getfirefox.com does for OS detection). This makes things easier for mere mortals who don't know about their OS version, just that they want this piece of software. The Mozilla Bugzilla bug has been linked in the URL field.
Attachments
Add attachment
proposed patch, testcase, etc.
Matt Lilek
Comment 1
2008-04-02 23:47:25 PDT
The OS version was added to the default UA string in <
http://trac.webkit.org/projects/webkit/changeset/28499
>, which actually includes the bugfix version and not just the major release version.
Tom
Comment 2
2008-04-02 23:56:47 PDT
Matt: Ahh, I'd gotten confused by this:
http://trac.webkit.org/projects/webkit/changeset/22701
I blame trac search, I should have checked useragent.org first: Your User Agent is: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13 Is there a bug for a page like about: then, that tells you your UA?
Jesse Ruderman
Comment 3
2008-04-03 00:02:39 PDT
Indeed,
http://delorie.com:81/
says the Safari included with Tiger is: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13 Interesting bit about dots vs underscores in the commit message for
http://trac.webkit.org/projects/webkit/changeset/28499
.
Tom
Comment 4
2008-06-17 18:18:59 PDT
(In reply to
comment #3
)
> Indeed,
http://delorie.com:81/
says the Safari included with Tiger is: > > User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) > AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13
I see 3.1, and Tiger came with Safari 2. You upgraded.
Jesse Ruderman
Comment 5
2008-06-18 00:10:27 PDT
By "Tiger" I mean "the current version of Tiger". It includes Safari 3.1.1 now.
Tom
Comment 6
2008-06-18 00:22:12 PDT
Ah, so 10.4.11 does include Safari 3.
http://docs.info.apple.com/article.html?artnum=306297
Did not know that.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug