[geary/ThamiMemel/geary-sandboxing_issue_#842: 1/3] Enabling WebKitGTK sandboxing




commit 174023dd235dacfd1a05d5c9cc509e678dc14960
Author: Thami Memel <memelthami gmail com>
Date:   Tue May 26 10:56:22 2020 +0000

    Enabling WebKitGTK sandboxing
    
    Changed to enable WebKitGTK sandboxing
    
    https://gitlab.gnome.org/GNOME/geary/-/issues/842

 src/client/components/components-web-view.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/client/components/components-web-view.vala b/src/client/components/components-web-view.vala
index f49ebb0a0..749e6539f 100644
--- a/src/client/components/components-web-view.vala
+++ b/src/client/components/components-web-view.vala
@@ -79,6 +79,8 @@ public abstract class Components.WebView : WebKit.WebView, Geary.BaseInterface {
                                         File cache_dir) {
         WebsiteDataManager data_manager = new WebsiteDataManager(cache_dir.get_path());
         WebKit.WebContext context = new WebKit.WebContext.with_website_data_manager(data_manager);
+        // Enable WebProcess sandboxing
+        context.set_sandbox_enabled(true);
         // Use the doc viewer model since each web view instance only
         // ever shows a single HTML document.
         context.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);


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