Commit f8e79e65 authored by Michael Catanzaro's avatar Michael Catanzaro

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.
parent aed8f25f
......@@ -2149,8 +2149,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 (),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment