LibWeb: Emit XMLHttpRequest timeout event when the request times out
Some checks failed
Push notes / build (push) Waiting to run
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Build Dev Container Image / build (push) Has been cancelled

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
commit 6f3b38de0f
Notes: github-actions[bot] 2025-08-27 12:16:51 +00:00

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