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:
joanvilarrasa 2025-08-26 19:04:06 +02:00 committed by Jelle Raaijmakers
parent 086877a280
commit 6f3b38de0f

View File

@ -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());
}
});