[epiphany] Don't show null in page title for about:plugins
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Don't show null in page title for about:plugins
- Date: Tue, 7 Jan 2014 23:08:48 +0000 (UTC)
commit fb0de41f33913cded3eb0ebc59dd4e7ad85bc520
Author: William Jon McCann <william jon mccann gmail com>
Date: Sat Dec 21 06:30:49 2013 -0500
Don't show null in page title for about:plugins
If for some reason an about: page doesn't load the next startup
will show one of the error screens. Those screens assume they
can get a hostname for the URL. There is no hostname for about:
schemes. So, in that case just display the entire URL.
https://bugzilla.gnome.org/show_bug.cgi?id=720876
embed/ephy-web-view.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index b535989..0215727 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1741,6 +1741,8 @@ ephy_web_view_load_error_page (EphyWebView *view,
reason = _("None specified");
hostname = ephy_string_get_host_name (uri);
+ if (hostname == NULL)
+ hostname = g_strdup (uri);
lang = g_strdup (pango_language_to_string (gtk_get_default_language ()));
g_strdelimit (lang, "_-@", '\0');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]