summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/data/engine-purposes/manifest.json
blob: fc709063e14616bf08d1aac23d6ee3edbc705928 (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
56
57
58
59
60
61
62
{
  "name": "Test Engine With Purposes",
  "manifest_version": 2,
  "version": "1.0",
  "browser_specific_settings": {
    "gecko": {
      "id": "engine-purposes@search.mozilla.org"
    }
  },
  "description": "A test search engine with purposes",
  "chrome_settings_overrides": {
    "search_provider": {
      "name": "Test Engine With Purposes",
      "search_url": "https://www.example.com/search",
      "params": [
        {
          "name": "form",
          "condition": "purpose",
          "purpose": "keyword",
          "value": "MOZKEYWORD"
        },
        {
          "name": "form",
          "condition": "purpose",
          "purpose": "contextmenu",
          "value": "MOZCONTEXT"
        },
        {
          "name": "form",
          "condition": "purpose",
          "purpose": "newtab",
          "value": "MOZNEWTAB"
        },
        {
          "name": "form",
          "condition": "purpose",
          "purpose": "searchbar",
          "value": "MOZSEARCHBAR"
        },
        {
          "name": "form",
          "condition": "purpose",
          "purpose": "homepage",
          "value": "MOZHOMEPAGE"
        },
        {
          "name": "pc",
          "value": "FIREFOX"
        },
        {
          "name": "channel",
          "condition": "pref",
          "pref": "testChannelEnabled"
        },
        {
          "name": "q",
          "value": "{searchTerms}"
        }
      ]
    }
  }
}