mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibWeb/IDB: Dont run wait callbacks as a database task
This commit is contained in:
parent
7fb65283c2
commit
98f91a3fcc
Notes:
github-actions[bot]
2025-10-18 12:51:17 +00:00
Author: https://github.com/stelar7
Commit: 98f91a3fcc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6504
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 3 additions and 3 deletions
|
@ -64,11 +64,11 @@ void RequestList::all_previous_requests_processed(GC::Heap& heap, GC::Ref<IDBReq
|
||||||
return stored_pending_connection_process.ptr() == pending_request_process.ptr();
|
return stored_pending_connection_process.ptr() == pending_request_process.ptr();
|
||||||
});
|
});
|
||||||
VERIFY(was_removed);
|
VERIFY(was_removed);
|
||||||
queue_a_database_task(on_complete);
|
on_complete->function()();
|
||||||
});
|
});
|
||||||
m_pending_request_queue.append(*pending_request_process);
|
m_pending_request_queue.append(*pending_request_process);
|
||||||
} else {
|
} else {
|
||||||
queue_a_database_task(on_complete);
|
on_complete->function()();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ void RequestList::PendingRequestProcess::add_request_to_observe(GC::Ref<IDBReque
|
||||||
});
|
});
|
||||||
|
|
||||||
if (requests_waiting_on.is_empty()) {
|
if (requests_waiting_on.is_empty()) {
|
||||||
queue_a_database_task(after_all.as_nonnull());
|
after_all.as_nonnull()->function()();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue