tor-browser

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

process.js (987B)


      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  generateActorSpec,
      8  RetVal,
      9  Option,
     10 } = require("resource://devtools/shared/protocol.js");
     11 
     12 const processDescriptorSpec = generateActorSpec({
     13  typeName: "processDescriptor",
     14 
     15  methods: {
     16    getTarget: {
     17      request: {},
     18      response: {
     19        process: RetVal("json"),
     20      },
     21    },
     22    getWatcher: {
     23      request: {
     24        // Added in Fx137 for Vs.Code
     25        enableWindowGlobalThreadActors: Option(0, "boolean"),
     26      },
     27      response: RetVal("watcher"),
     28    },
     29    reloadDescriptor: {
     30      request: {
     31        bypassCache: Option(0, "boolean"),
     32      },
     33      response: {},
     34    },
     35  },
     36 
     37  events: {
     38    "descriptor-destroyed": {
     39      type: "descriptor-destroyed",
     40    },
     41  },
     42 });
     43 
     44 exports.processDescriptorSpec = processDescriptorSpec;