tor-browser

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

StreamFilterDataEvent.webidl (977B)


      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 * This is a Mozilla-specific WebExtension API, which is not available to web
      8 * content. It allows monitoring and filtering of HTTP response stream data.
      9 *
     10 * This API should currently be considered experimental, and is not defined by
     11 * any standard.
     12 */
     13 
     14 [Func="mozilla::extensions::StreamFilter::IsAllowedInContext",
     15 Exposed=Window]
     16 interface StreamFilterDataEvent : Event {
     17  constructor(DOMString type,
     18              optional StreamFilterDataEventInit eventInitDict = {});
     19 
     20  /**
     21   * Contains a chunk of data read from the input stream.
     22   */
     23  [Pure]
     24  readonly attribute ArrayBuffer data;
     25 };
     26 
     27 dictionary StreamFilterDataEventInit : EventInit {
     28  required ArrayBuffer data;
     29 };