toolkit/devtools/server/dbg-server.jsm
author Wes Kocher <wkocher@mozilla.com>
Thu, 02 Jul 2015 09:21:23 -0700
changeset 251173 a92c364a6d2e0e8f808909fbc0a197f322467b79
parent 233001 7d7ad83edfe75a65ab2be4722a6b27baee74158b
child 256447 d3c48d49c692c4337b20eedfdb60513a8990bac4
permissions -rw-r--r--
Backed out 2 changesets (bug 1176712) for gip f5 permafail CLOSED TREE a=bustage Backed out changeset 52fd1c8b0fcb (bug 1176712) Backed out changeset 6baeaddb32cc (bug 1176712)

/* -*- 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;
this.OriginalLocation = server.OriginalLocation;