mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 07:48:47 +00: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:
parent
853ecb8d8e
commit
3811be2f7c
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/awesomekling
Commit: 3811be2f7c
Pull-request: https://github.com/SerenityOS/serenity/pull/18634
4 changed files with 24 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue