[epiphany/mcatanzaro/app-mode-fixes: 3/3] web-app-utils: crash better when EphyWebApplication creation fails
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/app-mode-fixes: 3/3] web-app-utils: crash better when EphyWebApplication creation fails
- Date: Thu, 26 Mar 2020 19:47:09 +0000 (UTC)
commit 9211a639272410b64a741374b09c37ef940c753e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Mar 26 14:43:37 2020 -0500
web-app-utils: crash better when EphyWebApplication creation fails
This is always going to be fatal, but it's better to crash in a
controlled way.
lib/ephy-web-app-utils.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 10b30ae20..17c8de0b8 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -799,6 +799,9 @@ ephy_web_application_is_uri_allowed (const char *uri)
guint i;
gboolean matched = FALSE;
+ if (!webapp)
+ g_error ("Cannot create an EphyWebApplication for the current web app. Please debug
ephy_web_application_for_profile_directory().");
+
if (g_str_has_prefix (uri, "blob:") || g_str_has_prefix (uri, "data:"))
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]