LibWeb: Support Content-Security-Policy http-equiv state on meta element

This commit is contained in:
Luke Wilde 2024-11-26 14:04:49 +00:00 committed by Jelle Raaijmakers
commit e364443e60
Notes: github-actions[bot] 2025-05-23 14:40:23 +00:00
5 changed files with 60 additions and 0 deletions

View file

@ -206,6 +206,18 @@ SerializedPolicy Policy::serialize() const
};
}
void Policy::remove_directive(Badge<HTML::HTMLMetaElement>, FlyString const& name)
{
m_directives.remove_all_matching([&name](auto const& directive) {
return directive->name() == name;
});
}
void Policy::set_self_origin(Badge<HTML::HTMLMetaElement>, URL::Origin const& origin)
{
m_self_origin = origin;
}
void Policy::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);