Method

WebKitWebExtensionContexthas_injected_content_for_uri

unstable since: 2.56

Declaration [src]

gboolean
webkit_web_extension_context_has_injected_content_for_uri (
  WebKitWebExtensionContext* context,
  const gchar* uri
)

Description [src]

Checks if the extension has script or stylesheet content that can be injected into the specified URL.

The extension context will still need to be loaded and have granted website permissions for its content to actually be injected.

Available since: 2.56

Parameters

uri

Type: const gchar*

The webpage URI to check.

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

Return value

Type: gboolean

TRUE if the extension has content that can be injected by matching the URL against the extension’s requested match patterns.