Files
tubestation/dom/webidl/CompressionStream.webidl
Erik Nordin 681c5f3692 Bug 1947431 - Add "zstd" as a CompressionFormat r=saschanaz,webidl
This patch adds a new variant for "zstd" to the CompressionFormat
enum in WebIDL. It also adds a couple Mozilla-specific WPTs to ensure
that the construction of CompressionStream and DecompressionStream
objects with this format are restricted to the correct contexts.

Differential Revision: https://phabricator.services.mozilla.com/D238135
2025-03-03 21:26:52 +00:00

23 lines
609 B
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://wicg.github.io/compression/#compression-stream
*/
enum CompressionFormat {
"deflate",
"deflate-raw",
"gzip",
"zstd",
};
[Exposed=*]
interface CompressionStream {
[Throws]
constructor(CompressionFormat format);
};
CompressionStream includes GenericTransformStream;