diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 3521298759..a52b71330d 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -648,4 +648,9 @@ bool XMLHttpRequest::must_survive_garbage_collection() const return false; } +void XMLHttpRequest::abort() +{ + dbgln("(STUBBED) XMLHttpRequest::abort()"); +} + } diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h index 64d74a03f8..e7cf3bc1c9 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h @@ -63,6 +63,8 @@ public: WebIDL::ExceptionOr set_timeout(u32 timeout); u32 timeout() const; + void abort(); + private: virtual void visit_edges(Cell::Visitor&) override; virtual bool must_survive_garbage_collection() const override; diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl index ca967466a9..0bfc20f729 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl @@ -34,6 +34,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget { undefined open(ByteString method, USVString url, boolean async, optional USVString? username = {}, optional USVString? password = {}); undefined setRequestHeader(DOMString name, DOMString value); undefined send(optional XMLHttpRequestBodyInit? body = null); + undefined abort(); ByteString? getResponseHeader(ByteString name); ByteString getAllResponseHeaders();