[sushi/enable-webkit-sandbox-on-startup: 2/2] Enable webkit sandbox on GApplication.startup
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/enable-webkit-sandbox-on-startup: 2/2] Enable webkit sandbox on GApplication.startup
- Date: Mon, 4 Apr 2022 08:06:55 +0000 (UTC)
commit a6e012c25e7645d089b068f7944b4d9415b4e35d
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Apr 4 10:06:07 2022 +0200
Enable webkit sandbox on GApplication.startup
This needs to be done only once, so this is a good place for it.
Fixes #81
src/ui/application.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/ui/application.js b/src/ui/application.js
index 53fe2b4..f84a9bc 100644
--- a/src/ui/application.js
+++ b/src/ui/application.js
@@ -85,6 +85,9 @@ var Application = GObject.registerClass(class Application extends Gtk.Applicatio
vfunc_startup() {
super.vfunc_startup();
+ // Enable web process sandbox
+ WebKit2.WebContext.get_default().set_sandbox_enabled(true);
+
this._defineStyleAndThemes();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]