]> spindle.queued.net Git - midori/commitdiff
Don't show infobar installer on "view source" pages
authorPaweł Forysiuk <tuxator@o2.pl>
Fri, 18 Feb 2011 01:22:11 +0000 (02:22 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 18 Feb 2011 01:22:11 +0000 (02:22 +0100)
extensions/addons.c

index 10c55c18b4d60988c4717c1a146a5917429b842f..d0bba27b502ed1e7449fe39530d429bcf222d00e 100644 (file)
@@ -248,6 +248,12 @@ addons_notify_load_status_cb (MidoriView*      view,
                               MidoriExtension* extension)
 {
     const gchar* uri = midori_view_get_display_uri (view);
+    WebKitWebView* web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
+
+    #if WEBKIT_CHECK_VERSION (1, 1, 14)
+    if (webkit_web_view_get_view_source_mode (web_view))
+        return;
+    #endif
 
     if (uri && *uri)
     {