mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb: Stub XMLHttpRequest.abort
This commit is contained in:
parent
9805cdeaf5
commit
6c21c72492
3 changed files with 8 additions and 0 deletions
|
@ -648,4 +648,9 @@ bool XMLHttpRequest::must_survive_garbage_collection() const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void XMLHttpRequest::abort()
|
||||||
|
{
|
||||||
|
dbgln("(STUBBED) XMLHttpRequest::abort()");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,8 @@ public:
|
||||||
WebIDL::ExceptionOr<void> set_timeout(u32 timeout);
|
WebIDL::ExceptionOr<void> set_timeout(u32 timeout);
|
||||||
u32 timeout() const;
|
u32 timeout() const;
|
||||||
|
|
||||||
|
void abort();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void visit_edges(Cell::Visitor&) override;
|
virtual void visit_edges(Cell::Visitor&) override;
|
||||||
virtual bool must_survive_garbage_collection() const override;
|
virtual bool must_survive_garbage_collection() const override;
|
||||||
|
|
|
@ -34,6 +34,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
||||||
undefined open(ByteString method, USVString url, boolean async, optional USVString? username = {}, optional USVString? password = {});
|
undefined open(ByteString method, USVString url, boolean async, optional USVString? username = {}, optional USVString? password = {});
|
||||||
undefined setRequestHeader(DOMString name, DOMString value);
|
undefined setRequestHeader(DOMString name, DOMString value);
|
||||||
undefined send(optional XMLHttpRequestBodyInit? body = null);
|
undefined send(optional XMLHttpRequestBodyInit? body = null);
|
||||||
|
undefined abort();
|
||||||
|
|
||||||
ByteString? getResponseHeader(ByteString name);
|
ByteString? getResponseHeader(ByteString name);
|
||||||
ByteString getAllResponseHeaders();
|
ByteString getAllResponseHeaders();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue