Changeset 79589 in webkit
- Timestamp:
- Feb 24, 2011 10:42:28 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r79583 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * http/tests/navigation/useragent-expected.txt: 9 * http/tests/navigation/useragent.php: 10 1 11 2011-02-24 Pavel Feldman <pfeldman@chromium.org> 2 12 -
trunk/LayoutTests/http/tests/navigation/useragent-expected.txt
r79396 r79589 1 1 Tests for user agent string template 2 2 3 UserAgent should match the Mozilla/5.0 (%Platform%; U;%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) template: true3 UserAgent should match the Mozilla/5.0 (%Platform%; %Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) template: true 4 4 UserAgent should be the same as the appVersion with appCodeName prefix: true 5 5 HTTP User-Agent header should be the same as userAgent: true -
trunk/LayoutTests/http/tests/navigation/useragent.php
r79396 r79589 12 12 13 13 // Validate the user agent string using the following template: 14 var userAgentTemplate = "Mozilla/5.0 (%Platform%; U;%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko)"15 var userAgentTemplateRegExp = /^Mozilla\/5\.0 \(.+; U;[^;]+\) AppleWebKit\/[0-9\.]+(\+)? \(KHTML, like Gecko\).*$/;14 var userAgentTemplate = "Mozilla/5.0 (%Platform%; %Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko)" 15 var userAgentTemplateRegExp = /^Mozilla\/5\.0 \(.+; [^;]+\) AppleWebKit\/[0-9\.]+(\+)? \(KHTML, like Gecko\).*$/; 16 16 document.write("UserAgent should match the " + userAgentTemplate + " template: " + !!userAgent.match(userAgentTemplateRegExp) + "<br>"); 17 17 -
trunk/Source/WebKit/ChangeLog
r79396 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * StringsNotToBeLocalized.txt: 9 1 10 2011-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 11 -
trunk/Source/WebKit/StringsNotToBeLocalized.txt
r79396 r79589 270 270 "MoveWordRight" 271 271 "MoveWordRightAndModifySelection" 272 "Mozilla/5.0 (Macintosh; U;"273 "Mozilla/5.0 (Windows; U;"272 "Mozilla/5.0 (Macintosh; " 273 "Mozilla/5.0 (Windows; " 274 274 "MuteButton" 275 275 "NP_GetEntryPoints" -
trunk/Source/WebKit/efl/ChangeLog
r79441 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * WebCoreSupport/FrameLoaderClientEfl.cpp: 9 (WebCore::composeUserAgent): 10 * ewk/ewk_settings.cpp: 11 (ewk_settings_default_user_agent_get): 12 1 13 2011-02-23 Patrick Gansterer <paroga@webkit.org> 2 14 -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r79396 r79589 118 118 ua += " ("; 119 119 ua += agentPlatform(); // Platform 120 ua += "; U; "; // Security120 ua += "; "; 121 121 ua += agentOS(); // OS-or-CPU 122 122 ua += ") "; -
trunk/Source/WebKit/efl/ewk/ewk_settings.cpp
r79396 r79589 330 330 { 331 331 WTF::String ua_version = makeString(String::number(WEBKIT_USER_AGENT_MAJOR_VERSION), '.', String::number(WEBKIT_USER_AGENT_MINOR_VERSION), '+'); 332 WTF::String static_ua = makeString("Mozilla/5.0 (", _ewk_settings_webkit_platform_get(), "; U;", _ewk_settings_webkit_os_version_get(), ") AppleWebKit/", ua_version) + makeString(" (KHTML, like Gecko) Version/5.0 Safari/", ua_version);332 WTF::String static_ua = makeString("Mozilla/5.0 (", _ewk_settings_webkit_platform_get(), "; ", _ewk_settings_webkit_os_version_get(), ") AppleWebKit/", ua_version) + makeString(" (KHTML, like Gecko) Version/5.0 Safari/", ua_version); 333 333 334 334 return eina_stringshare_add(static_ua.utf8().data()); -
trunk/Source/WebKit/gtk/ChangeLog
r79586 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * webkit/webkitwebsettings.cpp: 9 (webkitUserAgent): 10 1 11 2011-02-24 Andrew Wilson <atwilson@chromium.org> 2 12 -
trunk/Source/WebKit/gtk/webkit/webkitwebsettings.cpp
r79396 r79589 223 223 224 224 DEFINE_STATIC_LOCAL(const String, uaVersion, (makeString(String::number(WEBKIT_USER_AGENT_MAJOR_VERSION), '.', String::number(WEBKIT_USER_AGENT_MINOR_VERSION), '+'))); 225 DEFINE_STATIC_LOCAL(const String, staticUA, (makeString("Mozilla/5.0 (", webkitPlatform(), "; U;", webkitOSVersion(), ") AppleWebKit/", uaVersion) +225 DEFINE_STATIC_LOCAL(const String, staticUA, (makeString("Mozilla/5.0 (", webkitPlatform(), "; ", webkitOSVersion(), ") AppleWebKit/", uaVersion) + 226 226 makeString(" (KHTML, like Gecko) Version/5.0 Safari/", uaVersion))); 227 227 -
trunk/Source/WebKit/mac/ChangeLog
r79586 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * WebView/WebView.mm: 9 (+[WebView _standardUserAgentWithApplicationName:]): 10 1 11 2011-02-24 Andrew Wilson <atwilson@chromium.org> 2 12 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r79396 r79589 549 549 webKitVersion = createUserVisibleWebKitVersionString(); 550 550 if ([applicationName length]) 551 return [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U;" PROCESSOR " Mac OS X %@) AppleWebKit/%@ (KHTML, like Gecko) %@", osVersion, webKitVersion, applicationName];552 return [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; U;" PROCESSOR " Mac OS X %@) AppleWebKit/%@ (KHTML, like Gecko)", osVersion, webKitVersion];551 return [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; " PROCESSOR " Mac OS X %@) AppleWebKit/%@ (KHTML, like Gecko) %@", osVersion, webKitVersion, applicationName]; 552 return [NSString stringWithFormat:@"Mozilla/5.0 (Macintosh; " PROCESSOR " Mac OS X %@) AppleWebKit/%@ (KHTML, like Gecko)", osVersion, webKitVersion]; 553 553 } 554 554 -
trunk/Source/WebKit/qt/Api/qwebpage.cpp
r79450 r79589 3684 3684 The default implementation returns the following value: 3685 3685 3686 "Mozilla/5.0 (%Platform%; %Security% ;%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%"3686 "Mozilla/5.0 (%Platform%; %Security%%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%" 3687 3687 3688 3688 On mobile platforms such as Symbian S60 and Maemo, "Mobile Safari" is used instead of "Safari". … … 3691 3691 \list 3692 3692 \o %Platform% and %Subplatform% are expanded to the windowing system and the operation system. 3693 \o %Security% expands to U if SSL is enabled, otherwise N. SSL is enabled if QSslSocket::supportsSsl() returns true.3693 \o %Security% expands to "N; " if SSL is disabled. 3694 3694 \o %WebKitVersion% is the version of WebKit the application was compiled against. 3695 3695 \o %AppVersion% expands to QCoreApplication::applicationName()/QCoreApplication::applicationVersion() if they're set; otherwise defaulting to Qt and the current Qt version. … … 3751 3751 firstPartTemp += QString::fromLatin1("; "); 3752 3752 3753 // SSL support 3754 #if !defined(QT_NO_OPENSSL) 3755 // we could check QSslSocket::supportsSsl() here, but this makes 3756 // OpenSSL, certificates etc being loaded in all cases were QWebPage 3757 // is used. This loading is not needed for non-https. 3758 firstPartTemp += QString::fromLatin1("U; "); 3759 // this may lead to a false positive: We indicate SSL since it is 3760 // compiled in even though supportsSsl() might return false 3761 #else 3753 #if defined(QT_NO_OPENSSL) 3754 // No SSL support 3762 3755 firstPartTemp += QString::fromLatin1("N; "); 3763 3756 #endif -
trunk/Source/WebKit/qt/ChangeLog
r79586 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * Api/qwebpage.cpp: 9 (QWebPage::userAgentForUrl): 10 1 11 2011-02-24 Andrew Wilson <atwilson@chromium.org> 2 12 -
trunk/Source/WebKit/win/ChangeLog
r79586 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * WebView.cpp: 9 (WebView::standardUserAgentWithApplicationName): 10 1 11 2011-02-24 Andrew Wilson <atwilson@chromium.org> 2 12 -
trunk/Source/WebKit/win/WebView.cpp
r79434 r79589 1245 1245 { 1246 1246 if (applicationName.isEmpty()) 1247 return makeString("Mozilla/5.0 (Windows; U;", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko)");1248 return makeString("Mozilla/5.0 (Windows; U;", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko) ", applicationName);1247 return makeString("Mozilla/5.0 (Windows; ", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko)"); 1248 return makeString("Mozilla/5.0 (Windows; ", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko) ", applicationName); 1249 1249 } 1250 1250 -
trunk/Source/WebKit/wx/ChangeLog
r79396 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * WebKitSupport/FrameLoaderClientWx.cpp: 9 (WebCore::FrameLoaderClientWx::userAgent): 10 1 11 2011-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 12 -
trunk/Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp
r79396 r79589 534 534 { 535 535 // FIXME: Use the new APIs introduced by the GTK port to fill in these values. 536 return String("Mozilla/5.0 (Macintosh; U;Intel Mac OS X) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3");536 return String("Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3"); 537 537 } 538 538 -
trunk/Source/WebKit2/ChangeLog
r79586 r79589 1 2011-02-24 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Drop the "U; " encryption level from the User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54566 7 8 * UIProcess/gtk/WebPageProxyGtk.cpp: 9 (WebKit::WebPageProxy::standardUserAgent): 10 * UIProcess/mac/WebPageProxyMac.mm: 11 (WebKit::WebPageProxy::standardUserAgent): 12 * UIProcess/qt/WebPageProxyQt.cpp: 13 (WebKit::WebPageProxy::standardUserAgent): 14 * UIProcess/win/WebPageProxyWin.cpp: 15 (WebKit::WebPageProxy::standardUserAgent): 16 1 17 2011-02-24 Andrew Wilson <atwilson@chromium.org> 2 18 -
trunk/Source/WebKit2/UIProcess/gtk/WebPageProxyGtk.cpp
r79396 r79589 33 33 { 34 34 // FIXME: This should not be hard coded. 35 return "Mozilla/5.0 (X11; U;Linux i686) AppleWebKit/534.7 (KHTML, like Gecko) Version/5.0 Safari/534.7";35 return "Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.7 (KHTML, like Gecko) Version/5.0 Safari/534.7"; 36 36 } 37 37 -
trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm
r79396 r79589 89 89 90 90 if (applicationNameForUserAgent.isEmpty()) 91 return makeString("Mozilla/5.0 (Macintosh; U;" PROCESSOR " Mac OS X ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko)");92 return makeString("Mozilla/5.0 (Macintosh; U;" PROCESSOR " Mac OS X ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko) ", applicationNameForUserAgent);91 return makeString("Mozilla/5.0 (Macintosh; " PROCESSOR " Mac OS X ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko)"); 92 return makeString("Mozilla/5.0 (Macintosh; " PROCESSOR " Mac OS X ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko) ", applicationNameForUserAgent); 93 93 } 94 94 -
trunk/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp
r79396 r79589 32 32 { 33 33 // FIXME: This should not be hard coded. 34 return "Mozilla/5.0 (Macintosh; U;Intel Mac OS X 10_6) AppleWebKit/531.4 (KHTML, like Gecko) Version/4.0.3 Safari/531.4";34 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6) AppleWebKit/531.4 (KHTML, like Gecko) Version/4.0.3 Safari/531.4"; 35 35 } 36 36 -
trunk/Source/WebKit2/UIProcess/win/WebPageProxyWin.cpp
r79396 r79589 104 104 105 105 if (applicationNameForUserAgent.isEmpty()) 106 return makeString("Mozilla/5.0 (Windows; U;", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko)");107 return makeString("Mozilla/5.0 (Windows; U;", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko) ", applicationNameForUserAgent);106 return makeString("Mozilla/5.0 (Windows; ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko)"); 107 return makeString("Mozilla/5.0 (Windows; ", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko) ", applicationNameForUserAgent); 108 108 } 109 109
Note: See TracChangeset
for help on using the changeset viewer.