Method

WebKitWebExtensionContextget_override_new_tab_page_uri

unstable since: 2.56

Declaration [src]

const gchar*
webkit_web_extension_context_get_override_new_tab_page_uri (
  WebKitWebExtensionContext* context
)

Description [src]

Get the URI to use as an alternative to the default new tab page, if the extension has one.

Provides the URI for a new tab page, if provided by the extension; otherwise NULL if no page is defined. The app should prompt the user for permission to use the extension’s new tab page as the default. Navigation to the override new tab page is only possible after this extension has been loaded.

Available since: 2.56

Return value

Type: const gchar*

The URI to use as an alternative to the default new tab page, or NULL if the extension does not have one.

The returned data is owned by the instance.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.