summaryrefslogtreecommitdiff
path: root/Meta/Lagom
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2022-10-15 16:28:49 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-10-16 02:06:29 +0330
commit7831e6295571c6a7c0e1f4db49db8f1e56bb0444 (patch)
treeffb48a0bfc5f0cce3d2ec3060c72a40aca84ed5b /Meta/Lagom
parentd5247ae33e99eb8e084c7ea74dd23e51d75b8d6d (diff)
downloadserenity-7831e6295571c6a7c0e1f4db49db8f1e56bb0444.zip
LibWeb: Add support for DOM::Document to XHR::send()
This patch adds support for posting a DOM::Document using XHR::send().
Diffstat (limited to 'Meta/Lagom')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
index 45259bb18d..2bfa3b1326 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
@@ -130,6 +130,9 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
if (type.name() == "BufferSource")
return { .name = "JS::Handle<JS::Object>", .sequence_storage_type = SequenceStorageType::MarkedVector };
+ if (type.name() == "XMLHttpRequestBodyInit")
+ return { .name = "Fetch::XMLHttpRequestBodyInit", .sequence_storage_type = SequenceStorageType::MarkedVector };
+
if (type.name() == "sequence") {
auto& parameterized_type = verify_cast<ParameterizedType>(type);
auto& sequence_type = parameterized_type.parameters().first();