[epiphany/pgriffis/web-extension/data-manager: 2/3] WebExtensions: Enable sandbox for extension processes




commit b2bb915e201fa524986b3909ad66a838a4deaeeb
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun Jul 10 19:17:45 2022 -0500

    WebExtensions: Enable sandbox for extension processes

 src/webextension/ephy-web-extension-manager.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index 7dcbcb45d..dc14c2d23 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -1004,6 +1004,7 @@ ephy_web_extensions_manager_create_web_extensions_webview (EphyWebExtension *web
 
   data_manager = webkit_web_context_get_website_data_manager (ephy_embed_shell_get_web_context 
(ephy_embed_shell_get_default ()));
   web_context = webkit_web_context_new_with_website_data_manager (data_manager);
+  webkit_web_context_set_sandbox_enabled (web_context, TRUE);
 
   webkit_web_context_register_uri_scheme (web_context, "ephy-webextension", ephy_webextension_scheme_cb, 
web_extension, NULL);
   webkit_security_manager_register_uri_scheme_as_secure (webkit_web_context_get_security_manager 
(web_context),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]