Accepting request 558218 from home:Zaitor

New stable rel

OBS-URL: https://build.opensuse.org/request/show/558218
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/epiphany?expand=0&rev=272
This commit is contained in:
Dominique Leuenberger 2017-12-20 15:49:47 +00:00 committed by Git OBS Bridge
parent 2c149c657f
commit e062d532a5
5 changed files with 14 additions and 71 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:390d50f975f8ab9228016eb60bf4b8ea9a39be0b31467e2d6c27ae75fa1e84ea
size 4418620

3
epiphany-3.26.5.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73f2315939988c03b3b641772c2f095494e379511537661173d4bc8b480f9e82
size 4419668

View File

@ -1,65 +0,0 @@
From 370b87f27fa9ad8be201d33f4eb6cf5ec39e3f56 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@igalia.com>
Date: Thu, 14 Dec 2017 11:05:33 -0600
Subject: session: Rework the safety check
Tanty and I both lost our Epiphany sessions yesterday... we need to
tighten up our URI sanity check. http:/// is a valid SoupURI, but it
should never be saved in the session.
---
src/ephy-session.c | 38 +++++++++++++++++++++++---------------
1 file changed, 23 insertions(+), 15 deletions(-)
diff --git a/src/ephy-session.c b/src/ephy-session.c
index b07346f..64f135a 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -822,22 +822,30 @@ save_session_in_thread_finished_cb (GObject *source_object,
static gboolean
session_seems_sane (GList *windows)
{
- GList *w;
- GList *t;
+ for (GList *w = windows; w != NULL; w = w->next) {
+ for (GList *t = ((SessionWindow *)w->data)->tabs; t != NULL; t = t->next) {
+ const char *url = ((SessionTab *)t->data)->url;
+ SoupURI *uri;
+ gboolean sane = FALSE;
+
+ /* Blank URLs can occur in some situations. Just ignore these, as they
+ * are harmless and not an indicator of a corrupted session. */
+ if (strcmp (url, "") == 0)
+ continue;
+
+ uri = soup_uri_new (url);
+ if (uri) {
+ if (uri->host != NULL ||
+ uri->scheme == SOUP_URI_SCHEME_DATA ||
+ uri->scheme == SOUP_URI_SCHEME_FILE)
+ sane = TRUE;
+ soup_uri_free (uri);
+ }
- for (w = windows; w != NULL; w = w->next) {
- for (t = ((SessionWindow *)w->data)->tabs; t != NULL; t = t->next) {
- const char *url = ((SessionTab *)t->data)->url;
- SoupURI *uri = soup_uri_new (url);
- if (uri) {
- soup_uri_free (uri);
- }
- /* 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;
- }
+ if (!sane) {
+ g_critical ("Refusing to save session due to invalid URL %s", url);
+ return FALSE;
+ }
}
}
--
cgit v0.12

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Dec 18 16:28:08 UTC 2017 - zaitor@opensuse.org
- Update to version 3.26.5:
+ Fix error in sync migration when migrating from 3.26.2 or
earlier.
+ Improved logic to avoid corrupting session state.
- Drop epiphany-session-rework-the-safety-check.patch: Fixed
upstream.
-------------------------------------------------------------------
Thu Dec 14 17:15:32 UTC 2017 - zaitor@opensuse.org

View File

@ -17,7 +17,7 @@
Name: epiphany
Version: 3.26.4
Version: 3.26.5
Release: 0
Summary: GNOME Web Browser
License: GPL-3.0+
@ -25,8 +25,6 @@ Group: Productivity/Networking/Web/Browsers
Url: http://www.gnome.org/projects/epiphany/
Source0: http://download.gnome.org/sources/epiphany/3.26/%{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM epiphany-session-rework-the-safety-check.patch zaitor@opensuse.org -- session: Rework the safety check
Patch0: epiphany-session-rework-the-safety-check.patch
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig