[epiphany] Show a network error page when a G_TLS_ERROR is received
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Show a network error page when a G_TLS_ERROR is received
- Date: Thu, 5 Feb 2015 14:22:29 +0000 (UTC)
commit 7a9d5fb0c93c042637e32ba8992b89613658f924
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Feb 4 20:45:20 2015 -0600
Show a network error page when a G_TLS_ERROR is received
We don't expect a G_TLS_ERROR here, so we hit the g_return_val_if_fail
and wind up displaying a blank page with the error message in plain
text. We should display the network error page instead.
https://bugzilla.gnome.org/show_bug.cgi?id=744025
embed/ephy-web-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 495b405..95666fc 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1971,7 +1971,8 @@ load_failed_cb (WebKitWebView *web_view,
priv->load_failed = TRUE;
ephy_web_view_set_link_message (view, NULL);
- if (error->domain == SOUP_HTTP_ERROR) {
+ if (error->domain == SOUP_HTTP_ERROR ||
+ error->domain == G_TLS_ERROR) {
ephy_web_view_load_error_page (view, uri, EPHY_WEB_VIEW_ERROR_PAGE_NETWORK_ERROR, error);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]