From: Paweł Forysiuk Date: Fri, 18 Feb 2011 01:22:11 +0000 (+0100) Subject: Don't show infobar installer on "view source" pages X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85bdfac81ac7551d22f8c3b76a2e70f0c4c27f07;p=midori Don't show infobar installer on "view source" pages --- diff --git a/extensions/addons.c b/extensions/addons.c index 10c55c18..d0bba27b 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -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) {