Class
WebKitWebExtensionContext
unstable since: 2.56
Description [src]
final class WebKit.WebExtensionContext : GObject.Object
implements Gio.Initable {
/* No available fields */
}
Represents the runtime environment for a WebExtension.
A WebKitWebExtensionContext object provides methods for managing the extension’s permissions, allowing it to inject content,
run background logic, show popovers, and display other web-based UI to the user.
Available since: 2.56
Constructors
webkit_web_extension_context_new_for_extension
Create a new Context for the provided WebKitWebExtension.
unstable since: 2.56
Instance methods
webkit_web_extension_context_get_base_uri
Get the base URI this context uses for loading extension resources or injecting content into webpages.
The default value is a unique URI using the webkit-extension scheme.
unstable since: 2.56
webkit_web_extension_context_get_has_injected_content
Get whether the extension has script or stylesheet content that can be injected into webpages.
unstable since: 2.56
webkit_web_extension_context_get_options_page_uri
Get the URI of the extension’s options page, if the extension has one.
unstable since: 2.56
webkit_web_extension_context_get_override_new_tab_page_uri
Get the URI to use as an alternative to the default new tab page, if the extension has one.
unstable since: 2.56
webkit_web_extension_context_get_web_extension
Get the WebKitWebExtension this context represents.
unstable since: 2.56
webkit_web_extension_context_has_injected_content_for_uri
Checks if the extension has script or stylesheet content that can be injected into the specified URL.
unstable since: 2.56
webkit_web_extension_context_load_background_content
Asynchronously loads the background content if needed for the extension.
unstable since: 2.56
webkit_web_extension_context_load_background_content_finish
Finish an asynchronous operation started with webkit_web_extension_context_load_background_content().
unstable since: 2.56
webkit_web_extension_context_set_base_uri
Sets the base URI this context uses for loading extension resources or injecting content into webpages.
unstable since: 2.56
Methods inherited from GInitable (1)
g_initable_init
Initializes the object implementing the interface.
Properties
WebKit.WebExtensionContext:base-uri
The base URI of this context.
See webkit_web_extension_context_get_base_uri() for more details.
unstable since: 2.56
WebKit.WebExtensionContext:has-injected-content
Whether the extension has script or stylesheet content that can be injected into webpages.
See webkit_web_extension_context_get_has_injected_content() for more details.
unstable since: 2.56
WebKit.WebExtensionContext:options-page-uri
The URI of the extension’s options page.
See webkit_web_extension_context_get_options_page_uri() for more details.
unstable since: 2.56
WebKit.WebExtensionContext:override-new-tab-page-uri
The URI to use as an alternative to the default new tab page.
See webkit_web_extension_context_get_override_new_tab_page_uri() for more details.
unstable since: 2.56
WebKit.WebExtensionContext:web-extension
The WebKitWebExtension this context represents.
See webkit_web_extension_context_get_web_extension() for more details.
unstable since: 2.56
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.