mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00: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
Notes:
github-actions[bot]
2025-08-27 12:16:51 +00:00
Author: https://github.com/joanvilarrasa 🔰
Commit: 6f3b38de0f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5931
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kennethmyhra ✅
Reviewed-by: https://github.com/tcl3
Reviewed-by: https://github.com/trflynn89
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue