A security boundary for websites.
<WebKitSecurityOrigin> 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 #f, the origins should
not be treated as equal.
Gets the hostname of self.
It is reasonable for this to be #f if its protocol does not
require a host component.
Passed: a <WebKitSecurityOrigin>.
Returned: a string, or #f.
The host of the <WebKitSecurityOrigin>
Gets the port of self.
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 <WebKitSecurityOrigin> constructed
from either URI.
Passed: a <WebKitSecurityOrigin>.
Returned: an unsigned 16-bit integer.
The port of the <WebKitSecurityOrigin>.
Gets the protocol of self.
Passed: a <WebKitSecurityOrigin>.
Returned: a string, or #f.
The protocol of the <WebKitSecurityOrigin>
Create a new security origin from the provided protocol, host and port.
Passed: a string.
The protocol for the new origin
Passed: a string.
The host for the new origin
Passed: an unsigned 16-bit integer.
The port number for the new origin, or 0 to indicate the default port for protocol
Returned: a <WebKitSecurityOrigin>.
Create a new security origin from the provided.
Create a new security origin from the provided URI. Components of
uri other than protocol, host, and port do not affect the created
<WebKitSecurityOrigin>.
Passed: a string.
The URI for the new origin
Returned: a <WebKitSecurityOrigin>.
Atomically increments the reference count of self by one.
This function is MT-safe and may be called from any thread.
Passed: a <WebKitSecurityOrigin>.
Returned: a <WebKitSecurityOrigin>.
The passed <WebKitSecurityOrigin>
Gets a string representation of self.
The string representation is a valid URI with only protocol, host, and
port components, or #f.
Passed: a <WebKitSecurityOrigin>.
Returned: a string, or #f.
a URI representing self.
Atomically decrements the reference count of self by one.
If the reference count drops to 0, all memory allocated by
<WebKitSecurityOrigin> is released. This
function is MT-safe and may be called from any thread.
Passed: a <WebKitSecurityOrigin>.