mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
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>
21 lines
651 B
Text
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;
|
|
};
|