WebKit.SecurityManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class WebKit.SecurityManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Controls security settings in a
WebKit.WebContext
.The
WebKit.SecurityManager
defines security settings for URI schemes in aWebKit.WebContext
. Get it from the context withWebKit.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:
- Return type:
Whether scheme is considered as a CORS enabled scheme.
See also
WebKit.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 orFalse
otherwise.- Return type:
Whether scheme is considered as a display isolated scheme.
See also
WebKit.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 orFalse
otherwise.- Return type:
Whether scheme is considered as an empty document scheme.
See also
WebKit.SecurityManager.register_uri_scheme_as_empty_document
().
- uri_scheme_is_local(scheme)¶
- Parameters:
scheme (
str
) – a URI scheme- Returns:
- Return type:
Whether scheme is considered as a local scheme.
See also
WebKit.SecurityManager.register_uri_scheme_as_local
().
- uri_scheme_is_no_access(scheme)¶
- Parameters:
scheme (
str
) – a URI scheme- Returns:
- Return type:
Whether scheme is considered as a no-access scheme.
See also
WebKit.SecurityManager.register_uri_scheme_as_no_access
().