Class (GI Struct)

WebKit-6.0WebKitSecurityOriginSince 2.16

A security boundary for websites.

WebKit.SecurityOrigin is a representation of a security domain defined by websites. A security origin consists of a protocol, a hostname, and an optional port number.

Resources with the same security origin can generally access each other for client-side scripting or database access. When comparing origins, beware that if both protocol and host are null, the origins should not be treated as equal.

2.16

Index

Constructors

Properties

Methods

  • Gets a string representation of origin.

    The string representation is a valid URI with only protocol, host, and port components, or null.

    Returns string

    a URI representing origin.

  • Atomically decrements the reference count of origin by one.

    If the reference count drops to 0, all memory allocated by WebKit.SecurityOrigin is released. This function is MT-safe and may be called from any thread.

    Returns void