summaryrefslogtreecommitdiffstats
path: root/browser/extensions/report-site-issue/experimentalAPIs/aboutConfigPrefs.json
blob: 1fd313e39240db7548ba9d0f32bac71cd2aa1be8 (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
[
  {
    "namespace": "aboutConfigPrefs",
    "description": "experimental API extension to allow access to about:config preferences",
    "events": [
      {
        "name": "onEndpointPrefChange",
        "type": "function",
        "parameters": []
      }
    ],
    "functions": [
      {
        "name": "getEndpointPref",
        "type": "function",
        "description": "Get the endpoint preference's value",
        "parameters": [],
        "async": true
      },
      {
        "name": "setEndpointPref",
        "type": "function",
        "description": "Set the endpoint preference's value",
        "parameters": [
          {
            "name": "value",
            "type": "string",
            "description": "The new value"
          }
        ],
        "async": true
      }
    ]
  }
]