]> spindle.queued.net Git - midori/commitdiff
Don't unconditionally render XML as source
authorChristian Dywan <christian@twotoasts.de>
Thu, 30 Aug 2012 20:07:43 +0000 (22:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 30 Aug 2012 20:07:43 +0000 (22:07 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/1043698
midori/midori-view.c

index f6c1c09f70f300db6f3a926a349d3318d5a0fc30..893d0b36796543335fcec2d920ce3dc31652676e 100644 (file)
@@ -3148,10 +3148,6 @@ webkit_web_view_mime_type_decision_cb (GtkWidget*               web_view,
         if (midori_view_is_blank (view))
             view_source = webkit_web_view_get_view_source_mode (WEBKIT_WEB_VIEW (web_view));
 
-        /* Render raw XML, including news feeds, as source */
-        if (!view_source && (!strcmp (mime_type, "application/xml")
-                          || !strcmp (mime_type, "text/xml")))
-            view_source = TRUE;
         webkit_web_view_set_view_source_mode (WEBKIT_WEB_VIEW (web_view), view_source);
 
         if (web_frame == webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (web_view)))