servo/components/script_bindings/webidls/QuotaExceededError.webidl
Rahul Menon 389277fa72
content: Make QuotaExceededError serializable (#38720)
Implements (de)serialization behavior for QuotaExceededError and enables
the annotation on the WebIDL spec.

Testing: Adds its own WPT tests
Fixes: https://github.com/servo/servo/issues/38685

---------

Signed-off-by: Rahul Menon <menonrahul02@gmail.com>
2025-08-16 20:33:37 +00:00

21 lines
651 B
Text

/* 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 https://mozilla.org/MPL/2.0/. */
// https://heycam.github.io/webidl/#quotaexceedederror
[
Exposed=(Window,Worker,Worklet,DissimilarOriginWindow),
Serializable
]
interface QuotaExceededError : DOMException {
[Throws] constructor(optional DOMString message = "", optional QuotaExceededErrorOptions options = {});
readonly attribute double? quota;
readonly attribute double? requested;
};
dictionary QuotaExceededErrorOptions {
double quota;
double requested;
};