mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 20:52:54 +00:00
LibWeb/XHR: Use HTML EventLoop to wait for response to arrive
This commit is contained in:
parent
2fb4fcf4a0
commit
ee1b2dced3
Notes:
github-actions[bot]
2025-01-03 10:00:21 +00:00
Author: https://github.com/shannonbooth
Commit: ee1b2dced3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3109
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
|
|||
}
|
||||
|
||||
// FIXME: This is not exactly correct, as it allows the HTML event loop to continue executing tasks.
|
||||
Platform::EventLoopPlugin::the().spin_until(GC::create_function(heap(), [&]() {
|
||||
HTML::main_thread_event_loop().spin_until(GC::create_function(heap(), [&]() {
|
||||
return processed_response || did_time_out;
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue