tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

AboutProtectionsChild.sys.mjs (604B)


      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/. */
      5 
      6 import { RemotePageChild } from "resource://gre/actors/RemotePageChild.sys.mjs";
      7 
      8 export class AboutProtectionsChild extends RemotePageChild {
      9  actorCreated() {
     10    super.actorCreated();
     11 
     12    this.exportFunctions(["RPMRecordGleanEvent"]);
     13  }
     14 
     15  RPMRecordGleanEvent(category, name, extra) {
     16    Glean[category]?.[name]?.record(extra);
     17  }
     18 }