[epiphany] Fix setup of webextensions
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix setup of webextensions
- Date: Wed, 3 Feb 2021 16:55:02 +0000 (UTC)
commit 7d73117519c792cccceb757c50bc7a8dd98f0ac9
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Tue Feb 2 18:19:11 2021 +0100
Fix setup of webextensions
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1435
embed/web-process-extension/ephy-webextension-api.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/embed/web-process-extension/ephy-webextension-api.c
b/embed/web-process-extension/ephy-webextension-api.c
index 281cc4b29..bd2f6e9c2 100644
--- a/embed/web-process-extension/ephy-webextension-api.c
+++ b/embed/web-process-extension/ephy-webextension-api.c
@@ -90,12 +90,9 @@ set_up_webextensions (EphyWebProcessExtension *extension,
g_autoptr (JSCValue) result = NULL;
const char *data;
gsize data_size;
- static gboolean setup = FALSE;
- if (setup)
- return;
-
- setup = TRUE;
+ result = jsc_context_get_value (js_context, "browser");
+ g_assert (jsc_value_is_undefined (result));
js_browser = jsc_value_new_object (js_context, NULL, NULL);
jsc_context_set_value (js_context, "browser", js_browser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]