CookieManager.getAcceptPolicy

Asynchronously get the cookie acceptance policy of cookie_manager.

Note that when policy was set to webkit.types.CookieAcceptPolicy.NoThirdParty and ITP is enabled, this will return webkit.types.CookieAcceptPolicy.Always. See also webkit_website_data_manager_set_itp_enabled().

When the operation is finished, callback will be called. You can then call webkit.cookie_manager.CookieManager.getAcceptPolicyFinish to get the result of the operation.

class CookieManager
void
getAcceptPolicy

Parameters

cancellable gio.cancellable.Cancellable

a #GCancellable or null to ignore

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied