[epiphany/gnome-3-18] web-view: set user-content-manager when creating related view
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-18] web-view: set user-content-manager when creating related view
- Date: Tue, 6 Sep 2016 05:51:18 +0000 (UTC)
commit 75e7ab311f9b57ac2427c42e6861b11598bfcf36
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Sep 6 00:38:17 2016 -0500
web-view: set user-content-manager when creating related view
WebKit does not set the WebKitUserContentManager from the related view
GObject property. The WebKitUserContentManager only gets set
automatically when using the webkit_web_context_new_with_related_view
GObject API.
This means all our script message handlers (and also user CSS) were
broken in related views (views that share the same web process), e.g.
when using the Add Account feature to switch between multiple Google
accounts on Google pages.
This is probably also the cause of user complaints that sometimes
bypassing the unacceptable TLS certificate error page doesn't work.
https://bugzilla.gnome.org/show_bug.cgi?id=769627
embed/ephy-web-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a7ef909..81daa3d 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2225,8 +2225,11 @@ ephy_web_view_new (void)
GtkWidget *
ephy_web_view_new_with_related_view (WebKitWebView *related_view)
{
+ EphyEmbedShell *shell = ephy_embed_shell_get_default ();
+
return g_object_new (EPHY_TYPE_WEB_VIEW,
"related-view", related_view,
+ "user-content-manager", ephy_embed_shell_get_user_content_manager (shell),
"settings", ephy_embed_prefs_get_settings (),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]