Changeset 80218 in webkit
- Timestamp:
- Mar 3, 2011 2:24:49 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80217 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * http/tests/navigation/useragent-expected.txt: 9 * http/tests/navigation/useragent.php: 10 1 11 2011-03-03 Peter Varga <pvarga@webkit.org> 2 12 -
trunk/LayoutTests/http/tests/navigation/useragent-expected.txt
r79589 r80218 1 1 Tests for user agent string template 2 2 3 UserAgent should match the Mozilla/5.0 (%Platform% ;%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
r79589 r80218 12 12 13 13 // Validate the user agent string using the following template: 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\).*$/;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/WebCore/ChangeLog
r80214 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * StringsNotToBeLocalized.txt: 9 1 10 2011-03-03 Mario Sanchez Prada <msanchez@igalia.com> 2 11 -
trunk/Source/WebCore/StringsNotToBeLocalized.txt
r80014 r80218 271 271 "MoveWordRightAndModifySelection" 272 272 "Mozilla/5.0 (Macintosh; " 273 "Mozilla/5.0 ( Windows;"273 "Mozilla/5.0 (" 274 274 "MuteButton" 275 275 "NP_GetEntryPoints" -
trunk/Source/WebKit/gtk/ChangeLog
r80184 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * webkit/webkitwebsettings.cpp: 9 (webkitPlatform): 10 (webkitUserAgent): 11 1 12 2011-03-02 Martin Robinson <mrobinson@igalia.com> 2 13 -
trunk/Source/WebKit/gtk/webkit/webkitwebsettings.cpp
r79589 r80218 172 172 { 173 173 #if PLATFORM(X11) 174 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("X11 ")));174 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("X11; "))); 175 175 #elif OS(WINDOWS) 176 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String(" Windows")));176 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String(""))); 177 177 #elif PLATFORM(MAC) 178 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("Macintosh ")));178 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("Macintosh; "))); 179 179 #elif defined(GDK_WINDOWING_DIRECTFB) 180 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("DirectFB ")));180 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("DirectFB; "))); 181 181 #else 182 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("Unknown ")));182 DEFINE_STATIC_LOCAL(const String, uaPlatform, (String("Unknown; "))); 183 183 #endif 184 184 … … 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(), "; ",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/qt/Api/qwebpage.cpp
r80077 r80218 3683 3683 The default implementation returns the following value: 3684 3684 3685 "Mozilla/5.0 (%Platform% ;%Security%%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%"3685 "Mozilla/5.0 (%Platform%%Security%%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%" 3686 3686 3687 3687 On mobile platforms such as Symbian S60 and Maemo, "Mobile Safari" is used instead of "Safari". … … 3689 3689 In this string the following values are replaced at run-time: 3690 3690 \list 3691 \o %Platform% and %Subplatform% are expanded to the windowing system and the operation system.3691 \o %Platform% expands to the windowing system followed by "; " if it is not Windows (e.g. "X11; "). 3692 3692 \o %Security% expands to "N; " if SSL is disabled. 3693 \o %Subplatform% expands to the operating system version (e.g. "Windows NT 6.1" or "Intel Mac OS X 10.5"). 3693 3694 \o %WebKitVersion% is the version of WebKit the application was compiled against. 3694 3695 \o %AppVersion% expands to QCoreApplication::applicationName()/QCoreApplication::applicationVersion() if they're set; otherwise defaulting to Qt and the current Qt version. … … 3709 3710 // Platform 3710 3711 #ifdef Q_WS_MAC 3711 "Macintosh "3712 "Macintosh; " 3712 3713 #elif defined Q_WS_QWS 3713 "QtEmbedded "3714 "QtEmbedded; " 3714 3715 #elif defined Q_WS_WIN 3715 "Windows"3716 // Nothing 3716 3717 #elif defined Q_WS_X11 3717 "X11 "3718 "X11; " 3718 3719 #elif defined Q_OS_SYMBIAN 3719 3720 "Symbian" 3720 3721 #else 3721 "Unknown "3722 "Unknown; " 3722 3723 #endif 3723 3724 ); … … 3727 3728 switch (symbianVersion) { 3728 3729 case QSysInfo::SV_9_2: 3729 firstPartTemp += QString::fromLatin1("OS/9.2 ");3730 firstPartTemp += QString::fromLatin1("OS/9.2; "); 3730 3731 break; 3731 3732 case QSysInfo::SV_9_3: 3732 firstPartTemp += QString::fromLatin1("OS/9.3 ");3733 firstPartTemp += QString::fromLatin1("OS/9.3; "); 3733 3734 break; 3734 3735 case QSysInfo::SV_9_4: 3735 firstPartTemp += QString::fromLatin1("OS/9.4 ");3736 firstPartTemp += QString::fromLatin1("OS/9.4; "); 3736 3737 break; 3737 3738 case QSysInfo::SV_SF_2: 3738 firstPartTemp += QString::fromLatin1("/2 ");3739 firstPartTemp += QString::fromLatin1("/2; "); 3739 3740 break; 3740 3741 case QSysInfo::SV_SF_3: 3741 firstPartTemp += QString::fromLatin1("/3 ");3742 firstPartTemp += QString::fromLatin1("/3; "); 3742 3743 break; 3743 3744 case QSysInfo::SV_SF_4: 3744 firstPartTemp += QString::fromLatin1("/4"); 3745 firstPartTemp += QString::fromLatin1("/4; "); 3746 break; 3745 3747 default: 3748 firstPartTemp += QString::fromLatin1("; "); 3746 3749 break; 3747 3750 } 3748 3751 #endif 3749 3750 firstPartTemp += QString::fromLatin1("; ");3751 3752 3752 3753 #if defined(QT_NO_OPENSSL) -
trunk/Source/WebKit/qt/ChangeLog
r80145 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * Api/qwebpage.cpp: 9 (QWebPage::userAgentForUrl): 10 1 11 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 12 -
trunk/Source/WebKit/win/ChangeLog
r80145 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * WebView.cpp: 9 (WebView::standardUserAgentWithApplicationName): 10 1 11 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 12 -
trunk/Source/WebKit/win/WebView.cpp
r79589 r80218 1245 1245 { 1246 1246 if (applicationName.isEmpty()) 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);1247 return makeString("Mozilla/5.0 (", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko)"); 1248 return makeString("Mozilla/5.0 (", osVersion(), ") AppleWebKit/", webKitVersion(), " (KHTML, like Gecko) ", applicationName); 1249 1249 } 1250 1250 -
trunk/Source/WebKit2/ChangeLog
r80200 r80218 1 2011-03-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by James Robinson. 4 5 Drop redundant "Windows; " from the Windows-specific User Agent string. 6 https://bugs.webkit.org/show_bug.cgi?id=54567 7 8 * UIProcess/win/WebPageProxyWin.cpp: 9 (WebKit::WebPageProxy::standardUserAgent): 10 1 11 2011-03-02 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/WebKit2/UIProcess/win/WebPageProxyWin.cpp
r79589 r80218 104 104 105 105 if (applicationNameForUserAgent.isEmpty()) 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);106 return makeString("Mozilla/5.0 (", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko)"); 107 return makeString("Mozilla/5.0 (", osVersion, ") AppleWebKit/", webKitVersion, " (KHTML, like Gecko) ", applicationNameForUserAgent); 108 108 } 109 109
Note: See TracChangeset
for help on using the changeset viewer.