SecurityOrigin.getPort

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 #WebKitSecurityOrigin constructed from either URI. It will also return 0 if @origin is opaque.

class SecurityOrigin
ushort
getPort
()

Return Value

Type: ushort

The port of the #WebKitSecurityOrigin.

Meta

Since

2.16