blob: d2c8193fe57a1de7d8ca070d5beea6c7929351c3 (
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
|
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
const { RootActor } = require("devtools/server/actors/root");
const { DebuggerServer } = require("devtools/server/main");
/**
* Root actor that doesn't have the bulk trait.
*/
function createRootActor(aConnection) {
let root = new RootActor(aConnection, {
globalActorFactories: DebuggerServer.globalActorFactories
});
root.applicationType = "xpcshell-tests";
root.traits = {
bulk: false
};
return root;
}
exports.register = function (handle) {
handle.setRootActor(createRootActor);
};
exports.unregister = function (handle) {
handle.setRootActor(null);
};
|