LibWeb: Use JS::SafeFunction for module fetching callbacks

This fixes another GC crash seen on https://shopify.com/

Found it by collecting garbage after every 500th heap allocation.
This commit is contained in:
Andreas Kling 2023-05-04 16:44:31 +02:00
parent 390ade3cf4
commit 66c41e7c45
Notes: sideshowbarker 2024-07-16 22:51:10 +09:00

View File

@ -12,7 +12,7 @@
namespace Web::HTML {
using ModuleCallback = Function<void(JavaScriptModuleScript*)>;
using ModuleCallback = JS::SafeFunction<void(JavaScriptModuleScript*)>;
class DescendantFetchingContext : public RefCounted<DescendantFetchingContext> {
public: