Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions src/content/docs/reference/policies/Cookies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ With `Locked`, users can't change these settings in Firefox.
- `reject-foreign`: Reject third party cookies.
- `reject`: Reject all cookies.
- `limit-foreign`: Reject third party cookies for sites you haven't visited.
- `reject-tracker`: Reject cookies for known trackers (default).
- `partition-foreign`: Reject cookies for known trackers and partition third-party cookies, also known as Total Cookie Protection (default for private browsing).
- `reject-tracker`: Reject cookies for known trackers.
- `partition-foreign`: Reject cookies for known trackers and partition third-party cookies, also known as Total Cookie Protection (default).
- `reject-tracker-and-partition-foreign`: (_Deprecated_. Renamed to `partition-foreign`. Update existing configurations to use `partition-foreign`.)
- `BehaviorPrivateBrowsing` sets the default behavior for cookies in private browsing.
Accepts the same values as `Behavior`.
Expand All @@ -40,6 +40,30 @@ With `Locked`, users can't change these settings in Firefox.

<PolicyExample policy="Cookies" />

### Allowing and blocking cookies for specific sites

Firefox's default, `partition-foreign`, keeps third-party cookies separate for each site the user visits.
Locking it stops users from choosing a weaker setting.

Sites in `Allow` can always use their cookies, including when they're embedded in other sites.
This helps single sign-on providers that need the same cookies on every site that uses them.
Sites in `Block` can't set cookies, and Firefox deletes their existing cookies at startup.
Both lists also apply to subdomains:

```json
{
"policies": {
"Cookies": {
"Behavior": "partition-foreign",
"BehaviorPrivateBrowsing": "partition-foreign",
"Allow": ["https://login.example.com"],
"Block": ["https://ads.example.net"],
"Locked": true
}
}
}
```

## Windows (GPO)

```
Expand Down
50 changes: 50 additions & 0 deletions src/content/docs/reference/policies/Permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,56 @@ This explicitly means that it is not possible to add wildcards. See examples bel

<PolicyExample policy="Permissions" />

### Allowing the camera and microphone on certain sites

This example blocks all sites from asking to use the camera or microphone.
[Origins](https://developer.mozilla.org/en-US/docs/Glossary/Origin) in `Allow` can still use them, and Firefox doesn't prompt the user on those origins.
Firefox matches each entry, so you must list each origin the service uses, including subdomains.

Setting `Locked` stops users from disabling this via the **Block new requests** setting:

```json
{
"policies": {
"Permissions": {
"Camera": {
"Allow": ["https://meet.example.com"],
"BlockNewRequests": true,
"Locked": true
},
"Microphone": {
"Allow": ["https://meet.example.com"],
"BlockNewRequests": true,
"Locked": true
}
}
}
}
```

To allow screen sharing, add a `ScreenShare` entry.

### Blocking autoplay for audio and video

By default, Firefox allows sites to autoplay video without sound (`block-audio`).
The `block-audio-video` permission stops sites from automatically playing media until the user interacts with the page, and `Allow` lets you exempt sites.

`Locked` stops users from changing the autoplay settings, and only takes effect when `Default` is also set:

```json
{
"policies": {
"Permissions": {
"Autoplay": {
"Allow": ["https://video.example.com"],
"Default": "block-audio-video",
"Locked": true
}
}
}
}
```

## Windows (GPO)

```
Expand Down
Loading