Don't show infobar installer on "view source" pages
This commit is contained in:
parent
846a7f7088
commit
85bdfac81a
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue