]> spindle.queued.net Git - midori/commitdiff
Switch to a Chrome-based "automatic" identification
authorChristian Dywan <christian@twotoasts.de>
Thu, 21 Jun 2012 15:24:19 +0000 (17:24 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 21 Jun 2012 15:33:28 +0000 (17:33 +0200)
The primary motivation is to stop posing as OS X.

Fixes: https://bugs.launchpad.net/midori/+bug/916884
midori/midori-websettings.c

index 650a5f33228c4719962be2483a690d2309aa77d5..78399f6c445658f22b82ffe5051510c0f2a85cb7 100644 (file)
@@ -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);