mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/WebIDL: Upgrade QuotaExceededError to its own interface
See https://github.com/whatwg/webidl/commit/48eba6d
This commit is contained in:
committed by
Shannon Booth
parent
c12f21498c
commit
2a8b83a568
Notes:
github-actions[bot]
2025-12-29 16:16:14 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/2a8b83a568f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7239
@@ -38,6 +38,7 @@
|
||||
#include <LibWeb/Bindings/ImageBitmapPrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/MessagePortPrototype.h>
|
||||
#include <LibWeb/Bindings/QuotaExceededErrorPrototype.h>
|
||||
#include <LibWeb/Bindings/ReadableStreamPrototype.h>
|
||||
#include <LibWeb/Bindings/Serializable.h>
|
||||
#include <LibWeb/Bindings/Transferable.h>
|
||||
@@ -63,6 +64,7 @@
|
||||
#include <LibWeb/Streams/TransformStream.h>
|
||||
#include <LibWeb/Streams/WritableStream.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
#include <LibWeb/WebIDL/QuotaExceededError.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -947,6 +949,8 @@ private:
|
||||
return intrinsics.is_interface_exposed<Bindings::ImageDataPrototype>(realm);
|
||||
case SerializeType::ImageBitmap:
|
||||
return intrinsics.is_interface_exposed<Bindings::ImageBitmapPrototype>(realm);
|
||||
case SerializeType::QuotaExceededError:
|
||||
return intrinsics.is_interface_exposed<Bindings::QuotaExceededErrorPrototype>(realm);
|
||||
case SerializeType::Unknown:
|
||||
dbgln("Unknown interface type for serialization: {}", to_underlying(name));
|
||||
break;
|
||||
@@ -987,6 +991,8 @@ private:
|
||||
return ImageData::create(realm);
|
||||
case SerializeType::ImageBitmap:
|
||||
return ImageBitmap::create(realm);
|
||||
case SerializeType::QuotaExceededError:
|
||||
return WebIDL::QuotaExceededError::create(realm);
|
||||
case SerializeType::Unknown:
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
||||
Reference in New Issue
Block a user