Since 2.16Gets the hostname of origin.
It is reasonable for this to be null
if its protocol does not require a host component.
The host of the WebKit.SecurityOrigin
Gets the port of origin.
This function will always return 0 if the port is the default port for the given protocol. For example, http://example.com has the same security origin as http://example.com:80, and this function will return 0 for a WebKit.SecurityOrigin constructed from either URI.
The port of the WebKit.SecurityOrigin.
Atomically increments the reference count of origin by one.
This function is MT-safe and may be called from any thread.
The passed WebKit.SecurityOrigin
Gets a string representation of origin.
The string representation
is a valid URI with only protocol, host, and port components, or
null.
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.
StaticnewStaticnew_
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.Since
2.16