aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-02-23 19:07:05 +0800
committerXan Lopez <xan@igalia.com>2012-02-23 19:07:05 +0800
commit6ecb6fda974f5fd47b52f1264b2735a60a67ba24 (patch)
treefa0797858b4379392639b4900b3f6481991e3896 /src
parente392e4427ffcdfcffee92549fcf0185cee55b982 (diff)
downloadgsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar.gz
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar.bz2
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar.lz
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar.xz
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.tar.zst
gsoc2013-epiphany-6ecb6fda974f5fd47b52f1264b2735a60a67ba24.zip
ephy-window: show an error if we fail to open a non-web URI with gtk_show_uri
Better than silently doing nothing.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 99234258a..bde8ce20a 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2105,8 +2105,6 @@ policy_decision_required_cb (WebKitWebView *web_view,
GError *error = NULL;
GdkScreen *screen;
- webkit_web_policy_decision_ignore (decision);
-
screen = gtk_widget_get_screen (GTK_WIDGET (web_view));
gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error);
@@ -2114,8 +2112,12 @@ policy_decision_required_cb (WebKitWebView *web_view,
{
LOG ("failed to handle non web scheme: %s", error->message);
g_error_free (error);
+
+ return FALSE;
}
+ webkit_web_policy_decision_ignore (decision);
+
return TRUE;
}