tor-browser

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

worker.js (699B)


      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 "use strict";
      5 
      6 const {
      7  RetVal,
      8  generateActorSpec,
      9 } = require("resource://devtools/shared/protocol.js");
     10 
     11 const workerDescriptorSpec = generateActorSpec({
     12  typeName: "workerDescriptor",
     13 
     14  methods: {
     15    detach: {
     16      request: {},
     17      response: {},
     18    },
     19    getTarget: {
     20      request: {},
     21      response: RetVal("json"),
     22    },
     23  },
     24 
     25  events: {
     26    "descriptor-destroyed": {
     27      type: "descriptor-destroyed",
     28    },
     29  },
     30 });
     31 
     32 exports.workerDescriptorSpec = workerDescriptorSpec;