add_cookie_full
Description:
[ Version ( since = "2.68" ) ]
public void add_cookie_full (owned Cookie cookie, URI? uri, URI? first_party)
public void add_cookie_full (owned Cookie cookie, URI? uri, URI? first_party)
Adds cookie
to this, emitting the 'changed' signal if we are modifying an existing cookie or
adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).
first_party
will be used to reject cookies coming from third party resources in case such a security policy is set in the
this.
uri
will be used to reject setting or overwriting secure cookies from insecure origins. null
is treated as secure.
cookie
will be 'stolen' by the jar, so don't free it afterwards.
Parameters:
this | |
cookie |
a Cookie |
uri |
the URI setting the cookie |
first_party |
the URI for the main document |