Change default User Agent.
authordaehyun81.yoo <daehyun81.yoo@samsung.com>
Mon, 15 Apr 2013 09:28:23 +0000 (18:28 +0900)
committerdaehyun81.yoo <daehyun81.yoo@samsung.com>
Mon, 15 Apr 2013 09:31:00 +0000 (18:31 +0900)
[Title] Change default User Agent.
[Issue#] N/A
[Problem] User Agent is set by old version.
[Cause] We did not change it when version was upgraded.
[Solution] We change the User Agent to latest.

Change-Id: I2934f1d469d127b17a79984e4cfc9f6a5856665d

Source/WebKit2/Platform/tizen/AboutData/AboutDataTizen.cpp
Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp

index 0ae1297..22c6686 100755 (executable)
@@ -617,9 +617,9 @@ static String versionPage()
     page.append("<div class='box'><table class='fixed-table' style=word-break:break-all; width=100%>");
 
     // TODO : More information(OS version, JavaScript Core version) will be added. 
-    page.append(helpTextToRow("WebKit", String::format("%d.%d", WEBKIT_MAJOR_VERSION, WEBKIT_MINOR_VERSION)));
+    page.append(helpTextToRow("WebKit", String::format("%d.%d", 537, 3)));
     // FIXME : User Agent should be obtained from a page OBJECT. This will be fixed after refactoring 'about:' implementation itself.
-     page.append(helpTextToRow("User Agent", "Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Mobile TizenBrowser/2.0"));
+     page.append(helpTextToRow("User Agent", "Mozilla/5.0 (Linux; Tizen 2.1; sdk) AppleWebKit/537.3 (KHTML, like Gecko) Version/2.1 Mobile Safari/537.3"));
 
     page.append(footer());
 
index 1eecc24..4e858f1 100755 (executable)
@@ -79,7 +79,7 @@ Evas_Object* WebPageProxy::viewWidget()
 String WebPageProxy::standardUserAgent(const String& applicationNameForUserAgent)
 {
 #if OS(TIZEN)
-    return String::fromUTF8("Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Mobile TizenBrowser/2.0");
+    return String::fromUTF8("Mozilla/5.0 (Linux; Tizen 2.1; sdk) AppleWebKit/537.3 (KHTML, like Gecko) Version/2.1 Mobile Safari/537.3");
 #endif
 
     WTF::String platform;