mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibWeb: Make BrowsingContext GC-allocated
(And BrowsingContextGroup had to come along for the ride as well.) This solves a number of nasty reference cycles between browsing contexts, history items, and their documents.
This commit is contained in:
@@ -47,7 +47,7 @@ struct NavigationParams {
|
||||
Optional<Environment> reserved_environment;
|
||||
|
||||
// the browsing context to be navigated (or discarded, if a browsing context group switch occurs)
|
||||
NonnullRefPtr<HTML::BrowsingContext> browsing_context;
|
||||
JS::Handle<HTML::BrowsingContext> browsing_context;
|
||||
|
||||
// a history handling behavior
|
||||
HistoryHandlingBehavior history_handling { HistoryHandlingBehavior::Default };
|
||||
|
||||
Reference in New Issue
Block a user