set_accept_policy


Description:

public void set_accept_policy (CookieAcceptPolicy policy)

Set the cookie acceptance policy of this as policy.

Note that ITP has its own way to handle third-party cookies, so when it's enabled, and policy is set to webkit_cookie_policy_accept_no_third_party, webkit_cookie_policy_accept_always will be used instead. Once disabled, the policy will be set back to webkit_cookie_policy_accept_no_third_party. See also webkit_website_data_manager_set_itp_enabled.

Parameters:

this

a CookieManager

policy

a CookieAcceptPolicy