[epiphany] session: Ignore blank URLs when saving session
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] session: Ignore blank URLs when saving session
- Date: Thu, 26 Jan 2017 14:29:47 +0000 (UTC)
commit 54f10fd20e095db84d78567affb6fef078686dc7
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 4c75125..08aa66d 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -831,7 +831,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]