mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Make module maps GC-allocated
This allows them to mark JS modules, and fixes a crash seen on https://shopify.com/
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3811be2f7c Pull-request: https://github.com/SerenityOS/serenity/pull/18634
@@ -8,6 +8,14 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
void ModuleMap::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& it : m_values) {
|
||||
visitor.visit(it.value.module_script);
|
||||
}
|
||||
}
|
||||
|
||||
bool ModuleMap::is_fetching(AK::URL const& url, DeprecatedString const& type) const
|
||||
{
|
||||
return is(url, type, EntryType::Fetching);
|
||||
|
||||
Reference in New Issue
Block a user