Enumeration

WebKitGlobalPrivacyControlPolicy

unstable since: 2.56

Declaration

enum WebKit.GlobalPrivacyControlPolicy

Description [src]

Values used to specify how the Global Privacy Control signal is applied on navigations.

The policy is configured using the WebKitWebsitePolicies:global-privacy-control property. It applies to main frame navigations, and is inherited by subframes and subrequests. Setting a different policy for subframes or subrequests is ignored.

Available since: 2.56

Members

WEBKIT_GLOBAL_PRIVACY_CONTROL_POLICY_UNSET

Do not configure Global Privacy Control. The Sec-GPC request header is not set and navigator.globalPrivacyControl is undefined.

  • Value: 0
  • Available since: 2.56
WEBKIT_GLOBAL_PRIVACY_CONTROL_POLICY_ENABLED

Enable Global Privacy Control. Both navigator.globalPrivacyControl and the Sec-GPC: 1 request header are set for the main frame, its subframes, and their subresources. The header is sent to secure origins: local addresses, and secure URI schemes (like HTTPS). (see webkit_web_context_register_uri_scheme()).

  • Value: 1
  • Available since: 2.56
WEBKIT_GLOBAL_PRIVACY_CONTROL_POLICY_DISABLED

Explicitly disable Global Privacy Control. The Sec-GPC request header is not set and navigator.globalPrivacyControl is set to false.

  • Value: 2
  • Available since: 2.56