Use the browser.privacy API to control usage of the features in the browser that can affect a user's privacy.

Permissions: privacy

Not allowed in: Content scripts, Devtools pages

tlsVersionRestrictionConfig
_TlsVersionRestrictionConfigMaximum
_TlsVersionRestrictionConfigMinimum
HTTPSOnlyModeOption
IPHandlingPolicy
globalPrivacyControl
httpsOnlyMode
networkPredictionEnabled
peerConnectionEnabled
tlsVersionRestriction
webRTCIPHandlingPolicy
_TlsVersionRestrictionConfigMaximum:
    | "TLSv1"
    | "TLSv1.1"
    | "TLSv1.2"
    | "TLSv1.3"
    | "unknown"

The maximum TLS version supported.

_TlsVersionRestrictionConfigMinimum:
    | "TLSv1"
    | "TLSv1.1"
    | "TLSv1.2"
    | "TLSv1.3"
    | "unknown"

The minimum TLS version supported.

HTTPSOnlyModeOption: "always" | "private_browsing" | "never"

The mode for https-only mode.

IPHandlingPolicy:
    | "default"
    | "default_public_and_private_interfaces"
    | "default_public_interface_only"
    | "disable_non_proxied_udp"
    | "proxy_only"

The IP handling policy of WebRTC.

globalPrivacyControl: Setting

Allow users to query the status of 'Global Privacy Control'. This setting's value is of type boolean, defaulting to false.

httpsOnlyMode: Setting

Allow users to query the mode for 'HTTPS-Only Mode'. This setting's value is of type HTTPSOnlyModeOption, defaulting to never.

networkPredictionEnabled: Setting

If enabled, the browser attempts to speed up your web browsing experience by pre-resolving DNS entries, prerendering sites (<link rel='prefetch' ...>), and preemptively opening TCP and SSL connections to servers. This preference's value is a boolean, defaulting to true.

peerConnectionEnabled: Setting

Allow users to enable and disable RTCPeerConnections (aka WebRTC).

tlsVersionRestriction: Setting

This property controls the minimum and maximum TLS versions. This setting's value is an object of tlsVersionRestrictionConfig.

webRTCIPHandlingPolicy: Setting

Allow users to specify the media performance/privacy tradeoffs which impacts how WebRTC traffic will be routed and how much local address information is exposed. This preference's value is of type IPHandlingPolicy, defaulting to default.