tor-browser

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

IJSDebugger.idl (684B)


      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 #include "nsISupports.idl"
      6 
      7 /**
      8 * Do not use this interface. Instead, write:
      9 *     const { addDebuggerToGlobal } = ChromeUtils.importESModule(
     10 *       "resource://gre/modules/jsdebugger.sys.mjs"
     11 *     );
     12 *     addDebuggerToGlobal(global);
     13 */
     14 [scriptable, uuid(a36fa816-31da-4b23-bc97-6412771f0867)]
     15 interface IJSDebugger : nsISupports
     16 {
     17  /**
     18   * Define the global Debugger constructor on a given global.
     19   */
     20  [implicit_jscontext]
     21  void addClass(in jsval global);
     22 };