[Xfce4-commits] <midori:master> Switch to a Chrome-based "automatic" identification
Christian Dywan
noreply at xfce.org
Thu Jun 21 17:34:02 CEST 2012
Updating branch refs/heads/master
to 50fea06389429e0548a0f4576d76f1f188fac77a (commit)
from 448905015cfee1fe6300fbfc52101be87aa29518 (commit)
commit 50fea06389429e0548a0f4576d76f1f188fac77a
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jun 21 17:24:19 2012 +0200
Switch to a Chrome-based "automatic" identification
The primary motivation is to stop posing as OS X.
Fixes: https://bugs.launchpad.net/midori/+bug/916884
midori/midori-websettings.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 650a5f3..78399f6 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -1435,13 +1435,12 @@ generate_ident_string (MidoriWebSettings* web_settings,
case MIDORI_IDENT_GENUINE:
return g_strdup_printf ("Mozilla/5.0 (%s %s) AppleWebKit/%d.%d+ %s",
platform, os, webcore_major, webcore_minor, appname);
+ case MIDORI_IDENT_MIDORI:
case MIDORI_IDENT_CHROME:
return g_strdup_printf ("Mozilla/5.0 (%s %s) AppleWebKit/%d.%d "
"(KHTML, like Gecko) Chrome/18.0.1025.133 Safari/%d.%d %s",
platform, os, webcore_major, webcore_minor, webcore_major, webcore_minor, appname);
- case MIDORI_IDENT_MIDORI:
case MIDORI_IDENT_SAFARI:
- g_object_set (web_settings, "enable-site-specific-quirks", TRUE, NULL);
return g_strdup_printf ("Mozilla/5.0 (Macintosh; U; Intel Mac OS X; %s) "
"AppleWebKit/%d+ (KHTML, like Gecko) Version/5.0 Safari/%d.%d+ %s",
lang, webcore_major, webcore_major, webcore_minor, appname);
More information about the Xfce4-commits
mailing list