소스 검색

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.
Andreas Kling 2 년 전
부모
커밋
66c41e7c45
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibWeb/HTML/Scripting/Fetching.h

+ 1 - 1
Userland/Libraries/LibWeb/HTML/Scripting/Fetching.h

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