mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Make PolicyContainer GC allocated
This is required to store Content Security Policies, as their Directives are implemented as subclasses with overridden virtual functions. Thus, they cannot be stored as generic Directive classes, as it'll lose the ability to call overridden functions when they are copied.
This commit is contained in:
@@ -23,6 +23,7 @@ void NavigationParams::visit_edges(Visitor& visitor)
|
||||
visitor.visit(response);
|
||||
visitor.visit(fetch_controller);
|
||||
visitor.visit(reserved_environment);
|
||||
visitor.visit(policy_container);
|
||||
}
|
||||
|
||||
void NonFetchSchemeNavigationParams::visit_edges(Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user