michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: "use strict"; michael@0: michael@0: /* michael@0: * General utilities used throughout devtools. michael@0: * michael@0: * When using chrome debugging, the debugger server is unable to debug itself. michael@0: * To avoid this, it must be loaded with a custom devtools loader with the michael@0: * invisibleToDebugger flag set to true. Everyone else, though, prefers a JSM. michael@0: */ michael@0: michael@0: this.EXPORTED_SYMBOLS = [ "DevToolsUtils" ]; michael@0: michael@0: const { devtools } = Components.utils.import("resource://gre/modules/devtools/Loader.jsm", {}); michael@0: this.DevToolsUtils = devtools.require("devtools/toolkit/DevToolsUtils.js");