[epiphany] Reenable PSON, but disable DNS prefetch temporarily
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Reenable PSON, but disable DNS prefetch temporarily
- Date: Sat, 30 Nov 2019 18:29:12 +0000 (UTC)
commit 6a8aca6e3ed0e4ebdd81ac5fa648f76c8f67e9b9
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Nov 30 12:27:51 2019 -0600
Reenable PSON, but disable DNS prefetch temporarily
The crash we are trying to avoid only occurs when we perform a DNS
prefetch with PSON enabled.
https://bugs.webkit.org/show_bug.cgi?id=204703
embed/ephy-embed-shell.c | 2 +-
lib/widgets/ephy-location-entry.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 405471ef9..d95409719 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -760,7 +760,7 @@ ephy_embed_shell_create_web_context (EphyEmbedShell *shell)
priv->web_context = g_object_new (WEBKIT_TYPE_WEB_CONTEXT,
"website-data-manager", manager,
- "process-swap-on-cross-site-navigation-enabled", FALSE, /* FIXME:
https://bugs.webkit.org/show_bug.cgi?id=204703 */
+ "process-swap-on-cross-site-navigation-enabled", TRUE,
NULL);
if (priv->mode == EPHY_EMBED_SHELL_MODE_AUTOMATION)
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 3eed89af4..79fdd0334 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -1045,8 +1045,11 @@ do_dns_prefetch (PrefetchHelper *helper)
{
EphyEmbedShell *shell = ephy_embed_shell_get_default ();
+/* FIXME: https://bugs.webkit.org/show_bug.cgi?id=204703 */
+#if WEBKIT_CHECK_VERSION(2, 27, 4)
if (helper->uri)
webkit_web_context_prefetch_dns (ephy_embed_shell_get_web_context (shell), helper->uri->host);
+#endif
helper->entry->dns_prefetch_handler = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]