Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / devtools / shared / specs / tracer.js
blob604987db84c88070c98edbbcef213af476d23eae
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 "use strict";
7 const {
8   generateActorSpec,
9   Arg,
10   types,
11 } = require("resource://devtools/shared/protocol.js");
13 types.addDictType("tracer.start.options", {
14   logMethod: "string",
15   traceValues: "boolean",
16   traceOnNextInteraction: "boolean",
17   traceOnNextLoad: "boolean",
18 });
20 const tracerSpec = generateActorSpec({
21   typeName: "tracer",
23   methods: {
24     startTracing: {
25       request: {
26         options: Arg(0, "tracer.start.options"),
27       },
28     },
29     stopTracing: {
30       request: {},
31     },
32   },
33 });
35 exports.tracerSpec = tracerSpec;