Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / devtools / client / fronts / changes.js
blob4737156dcfde035ce15c6af874b91968e1ac5ecc
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 FrontClassWithSpec,
9 registerFront,
10 } = require("resource://devtools/shared/protocol.js");
11 const { changesSpec } = require("resource://devtools/shared/specs/changes.js");
13 /**
14 * ChangesFront, the front object for the ChangesActor
16 class ChangesFront extends FrontClassWithSpec(changesSpec) {
17 constructor(client, targetFront, parentFront) {
18 super(client, targetFront, parentFront);
20 // Attribute name from which to retrieve the actorID out of the target actor's form
21 this.formAttributeName = "changesActor";
24 async initialize() {
25 // Ensure the corresponding ChangesActor is immediately available and ready to track
26 // changes by calling a method on it. Actors are lazy and won't be created until
27 // actually used.
28 await super.start();
32 exports.ChangesFront = ChangesFront;
33 registerFront(ChangesFront);