Bug 1883706: part 3) Implement `createHTML`, `createScript` and `createScriptURL...
[gecko.git] / browser / actors / AboutProtectionsChild.sys.mjs
blob62a8b1ddff80381018583da759fb03a46e8278de
1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 import { RemotePageChild } from "resource://gre/actors/RemotePageChild.sys.mjs";
8 export class AboutProtectionsChild extends RemotePageChild {
9   actorCreated() {
10     super.actorCreated();
12     this.exportFunctions(["RPMRecordTelemetryEvent"]);
13   }
15   RPMRecordTelemetryEvent(category, event, object, value, extra) {
16     return Services.telemetry.recordEvent(
17       category,
18       event,
19       object,
20       value,
21       extra
22     );
23   }