[epiphany/gnome-3-22] session: Ignore blank URLs when saving session
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-22] session: Ignore blank URLs when saving session
- Date: Thu, 26 Jan 2017 14:29:57 +0000 (UTC)
commit 60097bafc38052904e6484232453a48607731de7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Jan 26 08:29:07 2017 -0600
session: Ignore blank URLs when saving session
src/ephy-session.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index afb2a49..fc120c3 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -823,7 +823,10 @@ session_seems_sane (GList *windows)
SoupURI *uri = soup_uri_new (url);
if (uri) {
soup_uri_free (uri);
- } else {
+ }
+ /* Blank URLs can occur in some situations. Don't save them, but also
+ * do not torpedo the entire session as it's not a bug. */
+ else if (strcmp (url, "") != 0) {
g_critical ("Refusing to save session due to invalid URL %s", url);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]