mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Ladybird+WebContent: Update IPC calls to handle multiple traversables
The IPC layer between chromes and LibWeb now understands that multiple top level traversables can live in each WebContent process. This largely mechanical change adds a billion page_id/page_index arguments to make sure that pages that end up opening new WebViews through mechanisms like window.open() still work properly with those extra windows.
This commit is contained in:
@@ -890,7 +890,8 @@ void TraversableNavigable::destroy_top_level_traversable()
|
||||
// 3. Remove browsingContext.
|
||||
browsing_context->remove();
|
||||
|
||||
// FIXME: 4. Remove traversable from the user interface (e.g., close or hide its tab in a tabbed browser).
|
||||
// 4. Remove traversable from the user interface (e.g., close or hide its tab in a tabbed browser).
|
||||
page().client().page_did_close_top_level_traversable();
|
||||
|
||||
// 5. Remove traversable from the user agent's top-level traversable set.
|
||||
user_agent_top_level_traversable_set().remove(this);
|
||||
|
||||
Reference in New Issue
Block a user