Bug 1614879 [wpt PR 21750] - Set request mode for beacon request with non-cors-safeli...
[gecko.git] / dom / webidl / StreamFilterDataEvent.webidl
blob06a28f506140bff339a5348d704498e7aaf13ed5
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/. */
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  */
14 [Func="mozilla::extensions::StreamFilter::IsAllowedInContext",
15  Exposed=Window]
16 interface StreamFilterDataEvent : Event {
17   constructor(DOMString type,
18               optional StreamFilterDataEventInit eventInitDict = {});
20   /**
21    * Contains a chunk of data read from the input stream.
22    */
23   [Pure]
24   readonly attribute ArrayBuffer data;
27 dictionary StreamFilterDataEventInit : EventInit {
28   required ArrayBuffer data;