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/. */
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.
10 * This API should currently be considered experimental, and is not defined by
14 [Func="mozilla::extensions::StreamFilter::IsAllowedInContext",
16 interface StreamFilterDataEvent : Event {
17 constructor(DOMString type,
18 optional StreamFilterDataEventInit eventInitDict = {});
21 * Contains a chunk of data read from the input stream.
24 readonly attribute ArrayBuffer data;
27 dictionary StreamFilterDataEventInit : EventInit {
28 required ArrayBuffer data;