gecko-dev/toolkit/components/extensions/schemas/privacy.json

137 строки
6.5 KiB
JSON

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"choices": [{
"type": "string",
"enum": [
"privacy"
]
}]
}
]
},
{
"namespace": "privacy",
"permissions": ["privacy"]
},
{
"namespace": "privacy.network",
"description": "Use the <code>browser.privacy</code> API to control usage of the features in the browser that can affect a user's privacy.",
"permissions": ["privacy"],
"types": [
{
"id": "IPHandlingPolicy",
"type": "string",
"enum": ["default", "default_public_and_private_interfaces", "default_public_interface_only", "disable_non_proxied_udp"],
"description": "The IP handling policy of WebRTC."
}
],
"properties": {
"networkPredictionEnabled": {
"$ref": "types.Setting",
"description": "If enabled, the browser attempts to speed up your web browsing experience by pre-resolving DNS entries, prerendering sites (<code>&lt;link rel='prefetch' ...&gt;</code>), and preemptively opening TCP and SSL connections to servers. This preference's value is a boolean, defaulting to <code>true</code>."
},
"peerConnectionEnabled": {
"$ref": "types.Setting",
"description": "Allow users to enable and disable RTCPeerConnections (aka WebRTC)."
},
"webRTCIPHandlingPolicy": {
"$ref": "types.Setting",
"description": "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 <code>default</code>."
}
}
},
{
"namespace": "privacy.services",
"description": "Use the <code>browser.privacy</code> API to control usage of the features in the browser that can affect a user's privacy.",
"permissions": ["privacy"],
"properties": {
"passwordSavingEnabled": {
"$ref": "types.Setting",
"description": "If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to <code>true</code>."
}
}
},
{
"namespace": "privacy.websites",
"description": "Use the <code>browser.privacy</code> API to control usage of the features in the browser that can affect a user's privacy.",
"permissions": ["privacy"],
"types": [
{
"id": "TrackingProtectionModeOption",
"type": "string",
"enum": ["always", "never", "private_browsing"],
"description": "The mode for tracking protection."
},
{
"id": "CookieConfig",
"type": "object",
"description": "The settings for cookies.",
"properties": {
"behavior": {
"type": "string",
"optional": true,
"enum": [
"allow_all",
"reject_all",
"reject_third_party",
"allow_visited",
"reject_trackers"
],
"description": "The type of cookies to allow."
},
"nonPersistentCookies": {
"type": "boolean",
"optional": true,
"default": false,
"description": "Whether to create all cookies as nonPersistent (i.e., session) cookies."
}
}
}
],
"properties": {
"thirdPartyCookiesAllowed": {
"$ref": "types.Setting",
"description": "If disabled, the browser blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is <code>true</code>.",
"unsupported": true
},
"hyperlinkAuditingEnabled": {
"$ref": "types.Setting",
"description": "If enabled, the browser sends auditing pings when requested by a website (<code>&lt;a ping&gt;</code>). The value of this preference is of type boolean, and the default value is <code>true</code>."
},
"referrersEnabled": {
"$ref": "types.Setting",
"description": "If enabled, the browser sends <code>referer</code> headers with your requests. Yes, the name of this preference doesn't match the misspelled header. No, we're not going to change it. The value of this preference is of type boolean, and the default value is <code>true</code>."
},
"resistFingerprinting": {
"$ref": "types.Setting",
"description": "If enabled, the browser attempts to appear similar to other users by reporting generic information to websites. This can prevent websites from uniquely identifying users. Examples of data that is spoofed include number of CPU cores, precision of JavaScript timers, the local timezone, and disabling features such as GamePad support, and the WebSpeech and Navigator APIs. The value of this preference is of type boolean, and the default value is <code>false</code>."
},
"firstPartyIsolate": {
"$ref": "types.Setting",
"description": "If enabled, the browser will associate all data (including cookies, HSTS data, cached images, and more) for any third party domains with the domain in the address bar. This prevents third party trackers from using directly stored information to identify you across different websites, but may break websites where you login with a third party account (such as a Facebook or Google login.) The value of this preference is of type boolean, and the default value is <code>false</code>."
},
"protectedContentEnabled": {
"$ref": "types.Setting",
"description": "<strong>Available on Windows and ChromeOS only</strong>: If enabled, the browser provides a unique ID to plugins in order to run protected content. The value of this preference is of type boolean, and the default value is <code>true</code>.",
"unsupported": true
},
"trackingProtectionMode": {
"$ref": "types.Setting",
"description": "Allow users to specify the mode for tracking protection. This setting's value is of type TrackingProtectionModeOption, defaulting to <code>private_browsing_only</code>."
},
"cookieConfig": {
"$ref": "types.Setting",
"description": "Allow users to specify the default settings for allowing cookies, as well as whether all cookies should be created as non-persistent cookies. This setting's value is of type CookieConfig."
}
}
}
]