toolkit/devtools/server/dbg-server.jsm
author Xidorn Quan <quanxunzhen@gmail.com>
Thu, 02 Oct 2014 14:24:32 -0400
changeset 235931 d79568d581e64100b24d4612fee26e74d6dd33a4
parent 190623 69d61e42d5dfbf4588b72449249ff3e7f2125304
permissions -rw-r--r--
Bug 1075336 - Fix lifetime management of CounterStyle. r=dbaron, a=sledru

/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";
/**
 * Loads the remote debugging protocol code into a sandbox, in order to
 * shield it from the debuggee. This way, when debugging chrome globals,
 * debugger and debuggee will be in separate compartments.
 */

const Ci = Components.interfaces;
const Cc = Components.classes;
const Cu = Components.utils;

const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});

this.EXPORTED_SYMBOLS = ["DebuggerServer", "ActorPool"];

let server = devtools.require("devtools/server/main");

this.DebuggerServer = server.DebuggerServer;
this.ActorPool = server.ActorPool;