itpEnabled property
getter/setter pair
Sets whether Intelligent Tracking Prevention (ITP) is enabled.
When ITP is enabled, resource load statistics are collected and used to decide whether to allow or block third-party cookies and prevent user tracking. This is similar to Safari's tracking prevention feature.
IMPORTANT NOTE: When ITP is enabled, the cookie accept policy
WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY is ignored and
WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS is used instead.
This is a session-level setting that should be set during WebView initialization.
The default value is false.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.40+ (Official API - webkit_network_session_set_itp_enabled):
- This is a session-level setting. When enabled, ACCEPT_NO_THIRD_PARTY cookie policy is overridden to ACCEPT_ALWAYS.
Implementation
bool? itpEnabled;