Setup dbus server before the webextension #438.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 8 Oct 2018 21:07:18 +0000 (23:07 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 8 Oct 2018 21:07:18 +0000 (23:07 +0200)
Not sure if this changes anything, but it's a good choice to setup the
server before telling webkit where to look for webextensions.

src/main.c

index 071078f..7dce62b 100644 (file)
@@ -1052,12 +1052,12 @@ static void on_webctx_init_web_extension(WebKitWebContext *webctx, gpointer data
     g_free(extension);
 #endif
 
-    /* Setup the extension directory. */
-    webkit_web_context_set_web_extensions_directory(webctx, EXTENSIONDIR);
-
     name  = ext_proxy_init();
     vdata = g_variant_new("(ms)", name);
     webkit_web_context_set_web_extensions_initialization_user_data(webctx, vdata);
+
+    /* Setup the extension directory. */
+    webkit_web_context_set_web_extensions_directory(webctx, EXTENSIONDIR);
 }
 
 /**