summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/method-extensions/engines.json
blob: ddd4e45accba08229eaed91d1914d43130e6d2d0 (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
48
49
50
51
52
53
54
55
{
  "data": [
    {
      "webExtension": {
        "id": "get@search.mozilla.org",
        "name": "Get Engine",
        "search_url": "https://example.com",
        "search_url_get_params": "webExtension=1&search={searchTerms}",
        "suggest_url": "https://example.com",
        "suggest_url_get_params": "webExtension=1&suggest={searchTerms}"
      },
      "params": {
        "searchUrlGetParams": [
          { "name": "config", "value": "1" },
          { "name": "search", "value": "{searchTerms}" }
        ],
        "suggestUrlGetParams": [
          { "name": "config", "value": "1" },
          { "name": "suggest", "value": "{searchTerms}" }
        ]
      },
      "appliesTo": [
        {
          "included": { "everywhere": true },
          "default": "yes"
        }
      ]
    },
    {
      "webExtension": {
        "id": "post@search.mozilla.org",
        "name": "Post Engine",
        "search_url": "https://example.com",
        "search_url_post_params": "webExtension=1&search={searchTerms}",
        "suggest_url": "https://example.com",
        "suggest_url_post_params": "webExtension=1&suggest={searchTerms}"
      },
      "params": {
        "searchUrlPostParams": [
          { "name": "config", "value": "1" },
          { "name": "search", "value": "{searchTerms}" }
        ],
        "suggestUrlPostParams": [
          { "name": "config", "value": "1" },
          { "name": "suggest", "value": "{searchTerms}" }
        ]
      },
      "appliesTo": [
        {
          "included": { "everywhere": true }
        }
      ]
    }
  ]
}