Don't show infobar installer on "view source" pages

This commit is contained in:
Paweł Forysiuk 2011-02-18 02:22:11 +01:00 committed by Christian Dywan
parent 846a7f7088
commit 85bdfac81a

View file

@ -248,6 +248,12 @@ addons_notify_load_status_cb (MidoriView* view,
MidoriExtension* extension) MidoriExtension* extension)
{ {
const gchar* uri = midori_view_get_display_uri (view); 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) if (uri && *uri)
{ {