tor-browser

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

breakpoint-list.js (1194B)


      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 "use strict";
      6 
      7 const {
      8  generateActorSpec,
      9  Arg,
     10  types,
     11 } = require("resource://devtools/shared/protocol.js");
     12 
     13 types.addDictType("breakpoint-list.breakpoint-options", {
     14  condition: "nullable:string",
     15  logValue: "nullable:string",
     16 });
     17 
     18 const breakpointListSpec = generateActorSpec({
     19  typeName: "breakpoint-list",
     20 
     21  methods: {
     22    setBreakpoint: {
     23      request: {
     24        location: Arg(0, "json"),
     25        options: Arg(1, "breakpoint-list.breakpoint-options"),
     26      },
     27    },
     28    removeBreakpoint: {
     29      request: {
     30        location: Arg(0, "json"),
     31      },
     32    },
     33 
     34    setXHRBreakpoint: {
     35      request: {
     36        path: Arg(0, "string"),
     37        method: Arg(1, "string"),
     38      },
     39    },
     40    removeXHRBreakpoint: {
     41      request: {
     42        path: Arg(0, "string"),
     43        method: Arg(1, "string"),
     44      },
     45    },
     46    setActiveEventBreakpoints: {
     47      request: {
     48        ids: Arg(0, "array:string"),
     49      },
     50    },
     51  },
     52 });
     53 
     54 exports.breakpointListSpec = breakpointListSpec;