From 85bdfac81ac7551d22f8c3b76a2e70f0c4c27f07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Fri, 18 Feb 2011 02:22:11 +0100 Subject: [PATCH] Don't show infobar installer on "view source" pages --- extensions/addons.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.39.5