[sushi/sandbox-webkit] html: Sandbox WebKit
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/sandbox-webkit] html: Sandbox WebKit
- Date: Wed, 7 Oct 2020 11:18:32 +0000 (UTC)
commit f3a61e49ff819c47162fc67f842cea9b8ebd81a1
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Oct 7 13:17:32 2020 +0200
html: Sandbox WebKit
https://gitlab.gnome.org/GNOME/Initiatives/-/issues/19
src/viewers/html.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/viewers/html.js b/src/viewers/html.js
index a20d55d..fc0124d 100644
--- a/src/viewers/html.js
+++ b/src/viewers/html.js
@@ -41,6 +41,9 @@ var Klass = GObject.registerClass({
_init(file) {
super._init();
+ let webContext = WebKit2.WebContext.get_default();
+ webContext.set_sandbox_enabled(true);
+
/* disable the default context menu of the web view */
this.connect('context-menu',
function() {return true;});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]