Method

WebKitWebExtensionContextset_base_uri

unstable since: 2.56

Declaration [src]

void
webkit_web_extension_context_set_base_uri (
  WebKitWebExtensionContext* context,
  const gchar* base_uri
)

Description [src]

Sets the base URI this context uses for loading extension resources or injecting content into webpages.

The base URI can be set to any URI, but only the scheme and host will be used. The scheme cannot be a scheme that is already supported by WebKitWebView (e.g. http, https, etc.) Setting is only allowed when the context is not loaded.

Available since: 2.56

Parameters

base_uri

Type: const gchar*

The base URI to use for this context.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.