зеркало из https://github.com/mozilla/gecko-dev.git
76 строки
1.9 KiB
JSON
76 строки
1.9 KiB
JSON
[
|
|
{
|
|
"namespace": "trackingProtection",
|
|
"description": "experimental API allow requests through ETP",
|
|
"functions": [
|
|
{
|
|
"name": "allow",
|
|
"type": "function",
|
|
"description": "Add specific requests to a given allow-list",
|
|
"parameters": [
|
|
{
|
|
"name": "allowlistId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "patterns",
|
|
"description": "Array of match patterns",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"type": "object",
|
|
"optional": true,
|
|
"properties": {
|
|
"hosts": {
|
|
"description": "Hosts to limit this bypass to (optional)",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"optional": true
|
|
},
|
|
"notHosts": {
|
|
"description": "Hosts to not allow this bypass for (optional)",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"name": "revoke",
|
|
"type": "function",
|
|
"description": "Revokes the given allow-list",
|
|
"parameters": [
|
|
{
|
|
"name": "allowListId",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"name": "wasRequestUnblocked",
|
|
"type": "function",
|
|
"description": "Whether the given requestId was unblocked by any allowList",
|
|
"parameters": [
|
|
{
|
|
"name": "requestId",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"async": true
|
|
}
|
|
]
|
|
}
|
|
]
|