tor-browser

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

Nyx.webidl (1169B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 */
      6 
      7 /*
      8 * Interface for interacting with the Nyx snapshot fuzzing engine.
      9 *
     10 * Various functions useful for snapshot fuzzing that are enabled
     11 * only in --enable-snapshot-fuzzing builds, because they may be dangerous to
     12 * enable on untrusted pages.
     13 */
     14 
     15 [Pref="fuzzing.snapshot.enabled",
     16 Exposed=Window]
     17 namespace Nyx {
     18  /**
     19   * Use nyx_put for logging during Nyx fuzzing.
     20   */
     21  undefined log(UTF8String aMsg);
     22 
     23  /**
     24   * Determine if Nyx is enabled for the specified fuzzer.
     25   */
     26  boolean isEnabled(UTF8String aFuzzerName);
     27 
     28 
     29  /**
     30   * Determine if Nyx is in replay mode.
     31   */
     32  boolean isReplay();
     33 
     34  /**
     35   * Determine if Nyx is in started.
     36   */
     37  boolean isStarted();
     38 
     39  /**
     40   * Start Nyx.
     41   */
     42  undefined start();
     43 
     44  /**
     45   * Stop Nyx.
     46   */
     47  undefined release();
     48 
     49  /**
     50   * Get raw data from Nyx buffer.
     51   */
     52  [Throws, NewObject]
     53  ArrayBuffer getRawData();
     54 };