From 4a95cd8225dfbf52ece43ad08980ca9ad77fdc43 Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Thu, 12 Mar 2026 16:05:10 +0000 Subject: [PATCH 1/2] Add SitePolicies documentation --- .../docs/reference/policies/SitePolicies.mdx | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 src/content/docs/reference/policies/SitePolicies.mdx diff --git a/src/content/docs/reference/policies/SitePolicies.mdx b/src/content/docs/reference/policies/SitePolicies.mdx new file mode 100644 index 0000000..6b4fe91 --- /dev/null +++ b/src/content/docs/reference/policies/SitePolicies.mdx @@ -0,0 +1,118 @@ +--- +title: "SitePolicies" +description: "Fine grained control over policies for specific sites." +category: "Browsing restrictions" +--- + +Defines policies scoped to specific sites. + +**Compatibility:** Firefox 150, Firefox ESR 153\ +**Preferences Affected:** N/A + +The policy is made up of a list of rules that are evaluated in order. Each can contain: +* `Match` which is a list of sites. An empty list or missing property means to match all sites. +* `Exceptions` is also a list of sites which when matched bypasses this set of rules. +* `Policies` is an object defining the policies. + +Currently the only supported policies are: +* `DisableJit` which when true disables the JIT engine for the site. + +It is important to note that a site here refers to a registerable domain so `*.example.com` is a valid site but `*.com` is not. `*` can also be used to refer to all sites. + +For example this setting would disable the JIT for only `*.example.com`: +```json +[ + { + "Match": ["*.example.com"], + "Policies": { + "DisableJit": true + }, + } +] +``` + +While this setting would disable the JIT on every site except `*.example.org`: +```json +[ + { + "Exceptions": ["*.example.org"], + "Policies": { + "DisableJit": true + }, + } +] +``` + +## Windows (GPO) + +``` +Software\Policies\Mozilla\Firefox\SitePolicies (REG_MULTI_SZ) = +[ + { + "Exceptions": ["*.example.com"], + "Policies": { + "DisableJit": true + }, + } +] +``` + +## Windows (Intune) + +OMA-URI: + +```url +./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox/SitePolicies +``` + +Value (string): + +```xml + + +``` + +## macOS + +```xml + + SitePolicies + + + Exceptions + + *.example.com + + Policies + + DisableJit + + + + + +``` + +## policies.json + +```json +{ + "policies": { + "SitePolicies": [ + { + "Exceptions": ["*.example.com"], + "Policies": { + "DisableJit": true + }, + } + ] + } +} +``` From 1143b4f2f87f7cd7578e3f76df229fd2b9cec05b Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 13 Mar 2026 11:15:13 +0100 Subject: [PATCH 2/2] feat: run formatter --- .../docs/reference/policies/SitePolicies.mdx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/content/docs/reference/policies/SitePolicies.mdx b/src/content/docs/reference/policies/SitePolicies.mdx index 6b4fe91..51ff363 100644 --- a/src/content/docs/reference/policies/SitePolicies.mdx +++ b/src/content/docs/reference/policies/SitePolicies.mdx @@ -10,35 +10,39 @@ Defines policies scoped to specific sites. **Preferences Affected:** N/A The policy is made up of a list of rules that are evaluated in order. Each can contain: -* `Match` which is a list of sites. An empty list or missing property means to match all sites. -* `Exceptions` is also a list of sites which when matched bypasses this set of rules. -* `Policies` is an object defining the policies. + +- `Match` which is a list of sites. An empty list or missing property means to match all sites. +- `Exceptions` is also a list of sites which when matched bypasses this set of rules. +- `Policies` is an object defining the policies. Currently the only supported policies are: -* `DisableJit` which when true disables the JIT engine for the site. + +- `DisableJit` which when true disables the JIT engine for the site. It is important to note that a site here refers to a registerable domain so `*.example.com` is a valid site but `*.com` is not. `*` can also be used to refer to all sites. For example this setting would disable the JIT for only `*.example.com`: + ```json [ { "Match": ["*.example.com"], "Policies": { "DisableJit": true - }, + } } ] ``` While this setting would disable the JIT on every site except `*.example.org`: + ```json [ { "Exceptions": ["*.example.org"], "Policies": { "DisableJit": true - }, + } } ] ``` @@ -110,7 +114,7 @@ Value (string): "Exceptions": ["*.example.com"], "Policies": { "DisableJit": true - }, + } } ] }