tor-browser

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

GeckoViewActorChild.sys.mjs (562B)


      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/. */
      4 
      5 import { GeckoViewUtils } from "resource://gre/modules/GeckoViewUtils.sys.mjs";
      6 
      7 export class GeckoViewActorChild extends JSWindowActorChild {
      8  static initLogging(aModuleName) {
      9    const tag = aModuleName.replace("GeckoView", "") + "[C]";
     10    return GeckoViewUtils.initLogging(tag);
     11  }
     12 }
     13 
     14 const { debug, warn } = GeckoViewUtils.initLogging("Actor[C]");