WebKit2.SecurityManager

g GObject.Object GObject.Object WebKit2.SecurityManager WebKit2.SecurityManager GObject.Object->WebKit2.SecurityManager

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

register_uri_scheme_as_cors_enabled (scheme)

register_uri_scheme_as_display_isolated (scheme)

register_uri_scheme_as_empty_document (scheme)

register_uri_scheme_as_local (scheme)

register_uri_scheme_as_no_access (scheme)

register_uri_scheme_as_secure (scheme)

uri_scheme_is_cors_enabled (scheme)

uri_scheme_is_display_isolated (scheme)

uri_scheme_is_empty_document (scheme)

uri_scheme_is_local (scheme)

uri_scheme_is_no_access (scheme)

uri_scheme_is_secure (scheme)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2.SecurityManager(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2.SecurityManagerClass

Controls security settings in a WebKit2.WebContext.

The WebKit2.SecurityManager defines security settings for URI schemes in a WebKit2.WebContext. Get it from the context with WebKit2.WebContext.get_security_manager(), and use it to register a URI scheme with a certain security level, or to check if it already has it.

register_uri_scheme_as_cors_enabled(scheme)
Parameters:

scheme (str) – a URI 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/.

register_uri_scheme_as_display_isolated(scheme)
Parameters:

scheme (str) – a URI scheme

Register scheme as a display isolated scheme.

This means that pages cannot display these URIs unless they are from the same scheme.

register_uri_scheme_as_empty_document(scheme)
Parameters:

scheme (str) – a URI scheme

Register scheme as an empty document scheme.

This means that they are allowed to commit synchronously.

register_uri_scheme_as_local(scheme)
Parameters:

scheme (str) – a URI scheme

Register scheme as a local scheme.

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

register_uri_scheme_as_no_access(scheme)
Parameters:

scheme (str) – a URI 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.

register_uri_scheme_as_secure(scheme)
Parameters:

scheme (str) – a URI 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.

uri_scheme_is_cors_enabled(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is a CORS enabled scheme or False otherwise.

Return type:

bool

Whether scheme is considered as a CORS enabled scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_cors_enabled().

uri_scheme_is_display_isolated(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is a display isolated scheme or False otherwise.

Return type:

bool

Whether scheme is considered as a display isolated scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_display_isolated().

uri_scheme_is_empty_document(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is an empty document scheme or False otherwise.

Return type:

bool

Whether scheme is considered as an empty document scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_empty_document().

uri_scheme_is_local(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is a local scheme or False otherwise.

Return type:

bool

Whether scheme is considered as a local scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_local().

uri_scheme_is_no_access(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is a no-access scheme or False otherwise.

Return type:

bool

Whether scheme is considered as a no-access scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_no_access().

uri_scheme_is_secure(scheme)
Parameters:

scheme (str) – a URI scheme

Returns:

True if scheme is a secure scheme or False otherwise.

Return type:

bool

Whether scheme is considered as a secure scheme.

See also WebKit2.SecurityManager.register_uri_scheme_as_secure().