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/. */
10 } = require("resource://devtools/shared/protocol.js");
12 targetConfigurationSpec
,
13 } = require("resource://devtools/shared/specs/target-configuration.js");
16 * The TargetConfigurationFront/Actor should be used to populate the DevTools server
17 * with settings read from the client side but which impact the server.
18 * For instance, "disable cache" is a feature toggled via DevTools UI (client),
19 * but which should be communicated to the targets (server).
21 * See the TargetConfigurationActor for a list of supported configuration options.
23 class TargetConfigurationFront
extends FrontClassWithSpec(
24 targetConfigurationSpec
27 // Read the initial configuration.
28 this.initialConfiguration
= json
.configuration
;
29 this.traits
= json
.traits
;
33 registerFront(TargetConfigurationFront
);