[gnome-online-accounts/mcatanzaro/sandbox: 5/5] Enable web process sandbox
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/mcatanzaro/sandbox: 5/5] Enable web process sandbox
- Date: Thu, 9 Jul 2020 19:48:59 +0000 (UTC)
commit 6cebbcec7384b404fb558cd8678094fb13745a21
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Jun 15 11:46:34 2020 -0500
Enable web process sandbox
Fixes #125
configure.ac | 2 +-
meson.build | 2 +-
src/goabackend/goawebview.c | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 28d73d11..e7be1dbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,7 +117,7 @@ if test "$enable_backend" != "no"; then
AC_SUBST(JAVASCRIPT_CORE_GTK_CFLAGS)
AC_SUBST(JAVASCRIPT_CORE_GTK_LIBS)
- PKG_CHECK_MODULES(WEBKIT_GTK, [webkit2gtk-4.0 >= 2.12.0])
+ PKG_CHECK_MODULES(WEBKIT_GTK, [webkit2gtk-4.0 >= 2.26.0])
AC_SUBST(WEBKIT_GTK_CFLAGS)
AC_SUBST(WEBKIT_GTK_LIBS)
diff --git a/meson.build b/meson.build
index 3bd00072..ae53504f 100644
--- a/meson.build
+++ b/meson.build
@@ -103,7 +103,7 @@ if enable_goabackend
libsoup_dep = dependency('libsoup-2.4', version: '>= 2.42')
libxml_dep = dependency('libxml-2.0')
rest_dep = dependency('rest-0.7')
- webkit_gtk_dep = dependency('webkit2gtk-4.0', version: '>= 2.12.0')
+ webkit_gtk_dep = dependency('webkit2gtk-4.0', version: '>= 2.26.0')
endif
config_h.set('GOA_BACKEND_ENABLED', enable_goabackend)
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index de756402..2438e0cd 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -287,6 +287,7 @@ goa_web_view_constructed (GObject *object)
self->context = webkit_web_context_new ();
language_names = g_get_language_names ();
webkit_web_context_set_preferred_languages (self->context, language_names);
+ webkit_web_context_set_sandbox_enabled (self->context, TRUE);
g_signal_connect_swapped (self->context,
"initialize-web-extensions",
G_CALLBACK (web_view_initialize_web_extensions_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]