mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
WebContent: Tolerate invalid page_ids in ConnectionFromClient
When a tab or nested traversable navigable is closed, there might be messages still in the pipe from the UI process that we need to gracefully drop, rather than crash trying to access an invalid pointer.
This commit is contained in:
parent
3d6c515bae
commit
9077fe15ac
4 changed files with 417 additions and 75 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
Function<void(WebDriverConnection&)> on_webdriver_connection;
|
||||
|
||||
PageClient& page(u64 index) { return *m_pages.find(index)->value; }
|
||||
Optional<PageClient&> page(u64 index);
|
||||
PageClient& create_page();
|
||||
void remove_page(Badge<PageClient>, u64 index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue