LibWeb: Add {,de}serialization steps for CryptoKey

This commit is contained in:
Kenneth Myhra 2024-03-10 20:48:00 +01:00 committed by Andreas Kling
commit 52f056503d
Notes: sideshowbarker 2024-07-17 01:28:15 +09:00
5 changed files with 97 additions and 1 deletions

View file

@ -33,6 +33,7 @@
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/Bindings/Serializable.h>
#include <LibWeb/Bindings/Transferable.h>
#include <LibWeb/Crypto/CryptoKey.h>
#include <LibWeb/FileAPI/Blob.h>
#include <LibWeb/FileAPI/File.h>
#include <LibWeb/Geometry/DOMMatrix.h>
@ -984,6 +985,8 @@ private:
return Geometry::DOMRectReadOnly::create(realm);
if (interface_name == "DOMRect"sv)
return Geometry::DOMRect::create(realm);
if (interface_name == "CryptoKey"sv)
return Crypto::CryptoKey::create(realm);
VERIFY_NOT_REACHED();
}