2014-06-24 22:12:07 -07:00
|
|
|
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
2012-02-07 09:22:30 -08:00
|
|
|
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2012-02-07 09:22:30 -08:00
|
|
|
|
2012-02-14 11:45:36 -08:00
|
|
|
"use strict";
|
|
|
|
/**
|
2012-04-22 02:59:09 -07:00
|
|
|
* 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.
|
2012-02-14 11:45:36 -08:00
|
|
|
*/
|
|
|
|
|
2012-02-07 09:22:30 -08:00
|
|
|
const Ci = Components.interfaces;
|
2012-02-14 11:45:36 -08:00
|
|
|
const Cc = Components.classes;
|
2012-02-07 09:22:30 -08:00
|
|
|
const Cu = Components.utils;
|
|
|
|
|
2014-01-06 12:55:00 -08:00
|
|
|
const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
|
2013-12-18 10:48:38 -08:00
|
|
|
|
2014-01-06 12:55:00 -08:00
|
|
|
this.EXPORTED_SYMBOLS = ["DebuggerServer", "ActorPool"];
|
2013-12-18 10:48:38 -08:00
|
|
|
|
2014-01-06 12:55:00 -08:00
|
|
|
let server = devtools.require("devtools/server/main");
|
2012-02-14 11:45:36 -08:00
|
|
|
|
2014-01-06 12:55:00 -08:00
|
|
|
this.DebuggerServer = server.DebuggerServer;
|
|
|
|
this.ActorPool = server.ActorPool;
|