summaryrefslogtreecommitdiffstats
path: root/devtools/shared/security/tests/xpcshell/testactors.js
blob: 0a35f052878f8628b94b8b78c29bdd431b99a9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";

const { RootActor } = require("resource://devtools/server/actors/root.js");
const {
  ActorRegistry,
} = require("resource://devtools/server/actors/utils/actor-registry.js");

exports.createRootActor = function createRootActor(connection) {
  const root = new RootActor(connection, {
    globalActorFactories: ActorRegistry.globalActorFactories,
  });
  root.applicationType = "xpcshell-tests";
  return root;
};