aboutsummaryrefslogtreecommitdiff
path: root/archive/debugging/policies.examples.json
blob: 244ee244aa3b5fc1c3b7cdeb16074d85136661b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// https://github.com/mozilla/policy-templates/blob/master/README.md

// Extensions

// This policy controls the installation, uninstallation and locking of extensions.
// Locked extensions cannot be disabled or uninstalled. For Install, you specify a
// list of URLs or paths. For Uninstall and Locked, you specify extension IDs.


"policies": {
    "Extensions": {
          "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
          "Uninstall": ["addon_id@mozilla.org"],
          "Locked":  ["addon_id@mozilla.org"]
    }
}

"policies": {
    "WebsiteFilter": {
          "Block": ["<all_urls>"],
          "Exceptions": ["http://example.org/*"]
    }
}

"policies": {
    "SanitizeOnShutdown": [true|false]
}

// Does not seems to work to remove engines
"policies": {
    "SearchEngines": {
        "Add": [
        {
            "Name": "",
            "URLTemplate": "URL including {searchTerms} to substitute for the terms",
            "Method": ["GET", "POST"],
            "IconURL": "URL to icon",
            "Alias": "Alias that can be used to access the engine",
            "Description": "Description",
            "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
        }
        ],
        "Default": "Name of engine",
        "PreventInstalls": [true|false],
        "Remove": ["Twitter", "Wikipedia (en)"]
    }
}
bgstack15