From 38f66acdaf57a5022e8b15b16e34e76496eef166 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Thu, 24 Feb 2011 21:37:59 +0000 Subject: Drop "U;" from the UA string. This parallels https://bugs.webkit.org/show_bug.cgi?id=54566 and also matches a change in Firefox 4. BUG=none TEST=none Review URL: http://codereview.chromium.org/6576043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75955 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/user_agent.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'webkit/glue/user_agent.cc') diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc index fc4aa6c..d79e678 100644 --- a/webkit/glue/user_agent.cc +++ b/webkit/glue/user_agent.cc @@ -97,8 +97,6 @@ void BuildUserAgent(bool mimic_windows, std::string* result) { "?"; #endif - const char kUserAgentSecurity = 'U'; // "US" strength encryption - // Get the product name and version, and replace Safari's Version/X string // with it. This is done to expose our product name in a manner that is // maximally compatible with Safari, we hope!! @@ -107,10 +105,9 @@ void BuildUserAgent(bool mimic_windows, std::string* result) { // Derived from Safari's UA string. base::StringAppendF( result, - "Mozilla/5.0 (%s; %c; %s) AppleWebKit/%d.%d" + "Mozilla/5.0 (%s; %s) AppleWebKit/%d.%d" " (KHTML, like Gecko) %s Safari/%d.%d", mimic_windows ? "Windows" : kUserAgentPlatform, - kUserAgentSecurity, ((mimic_windows ? "Windows " : "") + BuildOSCpuInfo()).c_str(), WEBKIT_VERSION_MAJOR, WEBKIT_VERSION_MINOR, -- cgit v1.1