SecurityManager

The #WebKitSecurityManager defines security settings for URI schemes in a #WebKitWebContext. Get it from the context with webkit_web_context_get_security_manager(), and use it to register a URI scheme with a certain security level, or to check if it already has it.

Constructors

this
this(WebKitSecurityManager* webKitSecurityManager, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getSecurityManagerStruct
WebKitSecurityManager* getSecurityManagerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

registerUriSchemeAsCorsEnabled
void registerUriSchemeAsCorsEnabled(string scheme)

Register @scheme as a CORS (Cross-origin resource sharing) enabled scheme. This means that CORS requests are allowed. See W3C CORS specification http://www.w3.org/TR/cors/.

registerUriSchemeAsDisplayIsolated
void registerUriSchemeAsDisplayIsolated(string scheme)

Register @scheme as a display isolated scheme. This means that pages cannot display these URIs unless they are from the same scheme.

registerUriSchemeAsEmptyDocument
void registerUriSchemeAsEmptyDocument(string scheme)

Register @scheme as an empty document scheme. This means that they are allowed to commit synchronously.

registerUriSchemeAsLocal
void registerUriSchemeAsLocal(string scheme)

Register @scheme as a local scheme. This means that other non-local pages cannot link to or access URIs of this scheme.

registerUriSchemeAsNoAccess
void registerUriSchemeAsNoAccess(string scheme)

Register @scheme as a no-access scheme. This means that pages loaded with this URI scheme cannot access pages loaded with any other URI scheme.

registerUriSchemeAsSecure
void registerUriSchemeAsSecure(string scheme)

Register @scheme as a secure scheme. This means that mixed content warnings won't be generated for this scheme when included by an HTTPS page.

uriSchemeIsCorsEnabled
bool uriSchemeIsCorsEnabled(string scheme)

Whether @scheme is considered as a CORS enabled scheme. See also webkit_security_manager_register_uri_scheme_as_cors_enabled().

uriSchemeIsDisplayIsolated
bool uriSchemeIsDisplayIsolated(string scheme)

Whether @scheme is considered as a display isolated scheme. See also webkit_security_manager_register_uri_scheme_as_display_isolated().

uriSchemeIsEmptyDocument
bool uriSchemeIsEmptyDocument(string scheme)

Whether @scheme is considered as an empty document scheme. See also webkit_security_manager_register_uri_scheme_as_empty_document().

uriSchemeIsLocal
bool uriSchemeIsLocal(string scheme)

Whether @scheme is considered as a local scheme. See also webkit_security_manager_register_uri_scheme_as_local().

uriSchemeIsNoAccess
bool uriSchemeIsNoAccess(string scheme)

Whether @scheme is considered as a no-access scheme. See also webkit_security_manager_register_uri_scheme_as_no_access().

uriSchemeIsSecure
bool uriSchemeIsSecure(string scheme)

Whether @scheme is considered as a secure scheme. See also webkit_security_manager_register_uri_scheme_as_secure().

Static functions

getType
GType getType()

Variables

webKitSecurityManager
WebKitSecurityManager* webKitSecurityManager;

the main Gtk struct

Meta