mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Defer the handling of WebContent process crashes
Handling crashes synchronously is finicky since we're modifying the m_client_state struct while in a callback lambda owned by it. Let's avoid all the footguns here by simply using deferred_invoke() and handling the crash on next event loop iteration instead.
This commit is contained in:
parent
38781cb131
commit
e405a8f730
Notes:
sideshowbarker
2024-07-18 22:00:49 +09:00
Author: https://github.com/awesomekling
Commit: e405a8f730
2 changed files with 28 additions and 19 deletions
|
@ -90,6 +90,8 @@ private:
|
|||
void create_client();
|
||||
WebContentClient& client();
|
||||
|
||||
void handle_web_content_process_crash();
|
||||
|
||||
URL m_url;
|
||||
|
||||
struct ClientState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue