Name Description Size
BookmarksPolicies.sys.mjs A Bookmark object received through the policy engine will be an object with the following properties: - URL (URL) (required) The URL for this bookmark - Title (string) (required) The title for this bookmark - Placement (string) (optional) Either "toolbar" or "menu". If missing or invalid, "toolbar" will be used - Folder (string) (optional) The name of the folder to put this bookmark into. If present, a folder with this name will be created in the chosen placement above, and the bookmark will be created there. If missing, the bookmark will be created directly into the chosen placement. - Favicon (URL) (optional) An http:, https: or data: URL with the favicon. If possible, we recommend against using this property, in order to keep the json file small. If a favicon is not provided through the policy, it will be loaded naturally after the user first visits the bookmark. Note: The Policy Engine automatically converts the strings given to the URL and favicon properties into a URL object. The schema for this object is defined in policies-schema.json. 9378
moz.build 487
ProxyPolicies.sys.mjs 4061
sample.json 257
sample_bookmarks.json 1548
sample_proxy.json 267
sample_websitefilter.json 163
WebsiteFilter.sys.mjs This module implements the policy to block websites from being visited, or to only allow certain websites to be visited. The blocklist takes as input an array of MatchPattern strings, as documented at https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns. The exceptions list takes the same as input. This list opens up exceptions for rules on the blocklist that might be too strict. In addition to that, this allows the user to create an allowlist approach, by using the special "<all_urls>" pattern for the blocklist, and then adding all allowlisted websites on the exceptions list. Note that this module only blocks top-level website navigations and embeds. It does not block any other accesses to these urls: image tags, scripts, XHR, etc., because that could cause unexpected breakage. This is a policy to block users from visiting certain websites, and not from blocking any network connections to those websites. If the admin is looking for that, the recommended way is to configure that with extensions or through a company firewall. 5988