WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133855
[Gtk] [Stable] Fix the "Safari" part of the UA
https://bugs.webkit.org/show_bug.cgi?id=133855
Summary
[Gtk] [Stable] Fix the "Safari" part of the UA
Sergio Villar Senin
Reported
2014-06-13 07:30:27 PDT
The part of our UA where we claim to be Safari is plainly wrong. Since version 3.0 the Safari user agent has the following structure: Version/X Safari/Y while in WebKitGtk that part looks like Safari/Y Version/6.0 This is causing problems with lots of websites, some of them very important like live.com (hotmail.com) our www.icloud.com, that report "unsupported browser" problems. This is basically a port of
https://bugs.webkit.org/show_bug.cgi?id=133403
Attachments
Patch
(4.76 KB, patch)
2014-06-13 07:37 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2014-06-13 07:37:55 PDT
Created
attachment 233049
[details]
Patch
Martin Robinson
Comment 2
2014-06-13 08:10:08 PDT
Comment on
attachment 233049
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233049&action=review
> Tools/TestWebKitAPI/Tests/WebKitGtk/testwebsettings.c:108 > settings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(webView)); > defaultUserAgent = g_strdup(webkit_web_settings_get_user_agent(settings)); > > + g_assert(g_strstr_len(defaultUserAgent, -1, "Version/8.0 Safari/")); > + g_assert(g_strstr_len(defaultUserAgent, -1, "Version/8.0") < g_strstr_len(defaultUserAgent, -1, "Safari/")); > + > test_non_quirky_user_agents(settings, defaultUserAgent); > > /* Test quirky google domains */
This file doesn't exist any longer. :)
Sergio Villar Senin
Comment 3
2014-06-13 08:14:27 PDT
Comment on
attachment 233049
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233049&action=review
>> Tools/TestWebKitAPI/Tests/WebKitGtk/testwebsettings.c:108 >> /* Test quirky google domains */ > > This file doesn't exist any longer. :)
It does in the stable branch. This is for stable only
Martin Robinson
Comment 4
2014-06-13 08:19:43 PDT
Comment on
attachment 233049
[details]
Patch Doh! Sorry.
Sergio Villar Senin
Comment 5
2014-06-16 09:21:30 PDT
Committed finally in
r170009
Sergio Villar Senin
Comment 6
2014-06-16 09:21:53 PDT
Comment on
attachment 233049
[details]
Patch Clearing the flag now that landed
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