[epiphany] Revert "Fix setup of webextensions"



commit 3475a67a15328772edb91bc91b28826c81adba02
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 3 22:09:46 2021 +0000

    Revert "Fix setup of webextensions"
    
    This reverts commit 7d73117519c792cccceb757c50bc7a8dd98f0ac9

 embed/web-process-extension/ephy-webextension-api.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/embed/web-process-extension/ephy-webextension-api.c 
b/embed/web-process-extension/ephy-webextension-api.c
index 35f5d85fd..44d3b3860 100644
--- a/embed/web-process-extension/ephy-webextension-api.c
+++ b/embed/web-process-extension/ephy-webextension-api.c
@@ -90,9 +90,12 @@ set_up_webextensions (EphyWebProcessExtension *extension,
   g_autoptr (JSCValue) result = NULL;
   const char *data;
   gsize data_size;
+  static gboolean setup = FALSE;
 
-  result = jsc_context_get_value (js_context, "browser");
-  g_assert (jsc_value_is_undefined (result));
+  if (setup)
+    return;
+
+  setup = TRUE;
 
   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]