WebKit2.WebContext.prototype.set_web_extensions_initialization_user_data

function set_web_extensions_initialization_user_data(user_data: GLib.Variant): void {
    // Gjs wrapper for webkit_web_context_set_web_extensions_initialization_user_data()
}
  

Set user data to be passed to Web Extensions on initialization. The data will be passed to the #WebKitWebExtensionInitializeWithUserDataFunction. This method must be called before loading anything in this context, otherwise it will not have any effect. You can connect to WebKit2.WebContext::initialize-web-extensions to call this method before anything is loaded.

Since 2.4

user_data

a GLib.Variant