Explain dummy fetch of JSCContext in WebExtension This also silences a compiler warning.
1 files changed, 3 insertions(+), 0 deletions(-) M wkext/extension.c
M wkext/extension.c => wkext/extension.c +3 -0
@@ 164,8 164,11 @@ on_page_created (WebKitWebExtension *extension, WebKitFrame *frame = webkit_web_page_get_main_frame (page); WebKitScriptWorld *script_world = g_object_get_qdata (G_OBJECT (extension), SCRIPT_WORLD); /* Enforce the creation of the script world global context in the main frame */ g_autoptr(JSCContext) context = webkit_frame_get_js_context_for_script_world (frame, script_world); (void) context; } G_MODULE_EXPORT