1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibWeb: Revert support for DOM::Document in XHR::send()

This is a manual revert of commit: 7831e62

Let's revert this until we got nested union support in our IDL
generator/parser.
This commit is contained in:
Kenneth Myhra 2022-10-20 10:47:27 +02:00 committed by Andreas Kling
parent 645a64ef0f
commit ebd93c8d57
4 changed files with 10 additions and 27 deletions

View file

@ -47,7 +47,7 @@ public:
WebIDL::ExceptionOr<void> open(String const& method, String const& url);
WebIDL::ExceptionOr<void> open(String const& method, String const& url, bool async, String const& username = {}, String const& password = {});
WebIDL::ExceptionOr<void> send(Optional<Variant<JS::Handle<DOM::Document>, Fetch::XMLHttpRequestBodyInit>> body = {});
WebIDL::ExceptionOr<void> send(Optional<Fetch::XMLHttpRequestBodyInit> body);
WebIDL::ExceptionOr<void> set_request_header(String const& header, String const& value);
void set_response_type(Bindings::XMLHttpRequestResponseType type) { m_response_type = type; }