Skip to content

Commit a13a642

Browse files
committed
8244579: Windows "User Objects" leakage with WebView
Reviewed-by: ghb, kcr
1 parent 37b5edc commit a13a642

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/javafx.web/src/main/native/Source/WTF/wtf/java/MainThreadJava.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <wtf/java/JavaEnv.h>
2929
#include <wtf/java/JavaRef.h>
3030
#include <wtf/MainThread.h>
31+
#include <wtf/RunLoop.h>
3132

3233
namespace WTF {
3334
void scheduleDispatchFunctionsOnMainThread()
@@ -49,6 +50,9 @@ void scheduleDispatchFunctionsOnMainThread()
4950

5051
void initializeMainThreadPlatform()
5152
{
53+
#if OS(WINDOWS)
54+
RunLoop::registerRunLoopMessageWindowClass();
55+
#endif
5256
}
5357

5458
bool isMainThreadIfInitialized()

0 commit comments

Comments
 (0)