Bug 1792034 [wpt PR 36019] - Make location.search always expect UTF-8, a=testonly
[gecko.git] / browser / actors / AboutProtectionsChild.jsm
bloba35cafa12589f0d9ad4ae33d840853bb46b6896b
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 var EXPORTED_SYMBOLS = ["AboutProtectionsChild"];
8 const { RemotePageChild } = ChromeUtils.import(
9   "resource://gre/actors/RemotePageChild.jsm"
12 class AboutProtectionsChild extends RemotePageChild {
13   actorCreated() {
14     super.actorCreated();
16     this.exportFunctions(["RPMRecordTelemetryEvent"]);
17   }
19   RPMRecordTelemetryEvent(category, event, object, value, extra) {
20     return Services.telemetry.recordEvent(
21       category,
22       event,
23       object,
24       value,
25       extra
26     );
27   }