mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
The m_result Variant can hold a GC::Ref<ImportMapParseResult> when the script element has type="importmap", but visit_edges only traced the GC::Ref<Script> arm. This left the ImportMapParseResult unvisited, allowing the GC to collect it while the element still held a reference. ImportMapParseResult inherited from JS::Script::HostDefined, but no JS::Script or JS::Module ever stored it as host_defined data, so visit_host_defined_self was dead code. This removes the HostDefined inheritance entirely and switches m_result visitation to Variant::visit with a lambda that catches all GC::Ref arms. |
||
|---|---|---|
| .. | ||
| Agent.cpp | ||
| Agent.h | ||
| ClassicScript.cpp | ||
| ClassicScript.h | ||
| Environments.cpp | ||
| Environments.h | ||
| EnvironmentSettingsSnapshot.cpp | ||
| EnvironmentSettingsSnapshot.h | ||
| ExceptionReporter.cpp | ||
| ExceptionReporter.h | ||
| Fetching.cpp | ||
| Fetching.h | ||
| Fetching.idl | ||
| ImportMap.cpp | ||
| ImportMap.h | ||
| ImportMapParseResult.cpp | ||
| ImportMapParseResult.h | ||
| ModuleMap.cpp | ||
| ModuleMap.h | ||
| ModuleScript.cpp | ||
| ModuleScript.h | ||
| Script.cpp | ||
| Script.h | ||
| SerializedEnvironmentSettingsObject.cpp | ||
| SerializedEnvironmentSettingsObject.h | ||
| SimilarOriginWindowAgent.cpp | ||
| SimilarOriginWindowAgent.h | ||
| SyntheticRealmSettings.cpp | ||
| SyntheticRealmSettings.h | ||
| TemporaryExecutionContext.cpp | ||
| TemporaryExecutionContext.h | ||
| WindowEnvironmentSettingsObject.cpp | ||
| WindowEnvironmentSettingsObject.h | ||
| WorkerAgent.cpp | ||
| WorkerAgent.h | ||
| WorkerEnvironmentSettingsObject.cpp | ||
| WorkerEnvironmentSettingsObject.h | ||