mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Emit XMLHttpRequest timeout event when the request times out
When an XMLHttpRequest times out, we now emit a timeout event
This commit is contained in:
parent
086877a280
commit
6f3b38de0f
|
|
@ -876,6 +876,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
|
|||
if (!request->done()) {
|
||||
m_timed_out = true;
|
||||
m_fetch_controller->terminate();
|
||||
MUST(handle_errors());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user