Update WebKit user agent.

This commit is contained in:
Grace Kloba
2009-06-25 23:38:40 -07:00
parent aec9632db0
commit b4f33445b8
2 changed files with 7 additions and 7 deletions

View File

@@ -252,13 +252,13 @@ public class WebSettings {
// User agent strings.
private static final String DESKTOP_USERAGENT =
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en)"
+ " AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2"
+ " Safari/525.20.1";
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us)"
+ " AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0"
+ " Safari/530.17";
private static final String IPHONE_USERAGENT =
"Mozilla/5.0 (iPhone; U; CPU iPhone 2_1 like Mac OS X; en)"
+ " AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2"
+ " Mobile/5F136 Safari/525.20.1";
"Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us)"
+ " AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0"
+ " Mobile/7A341 Safari/528.16";
private static Locale sLocale;
private static Object sLockForLocaleSettings;

View File

@@ -1325,7 +1325,7 @@
<!-- Do not translate. WebView User Agent string -->
<string name="web_user_agent"><xliff:g id="x">Mozilla/5.0 (Linux; U; Android %s)
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1</xliff:g></string>
AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17</xliff:g></string>
<!-- Title for a JavaScript dialog. "The page at <url of current page> says:" -->
<string name="js_dialog_title">The page at \'<xliff:g id="title">%s</xliff:g>\' says:</string>