summaryrefslogtreecommitdiffstats
path: root/browser/extensions/webcompat/experiment-apis/matchPatterns.json
blob: 6fb4dc10fc8783c70eee67e1a212314a402f7fd6 (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
[
  {
    "namespace": "matchPatterns",
    "description": "experimental API extension to expose MatchPattern functionality",
    "functions": [
      {
        "name": "getMatcher",
        "type": "function",
        "description": "get a MatchPatternSet",
        "parameters": [
          {
            "name": "patterns",
            "description": "Array of string URL patterns to match",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ],
        "returns": {
          "type": "object",
          "properties": {
            "matches": { "type": "function" }
          }
        }
      }
    ]
  }
]