From 16beb1a86cf8c31d78f042fa7c5df2d5aad7105f Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 27 Aug 2026 19:28:31 +0200 Subject: [PATCH] fix: replace legacy `unload` event listener cleanup with `pagehide` --- AppKit/Platform/DOM/CPPlatformWindow+DOM.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j index 20413329b..bac1994c4 100644 --- a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j +++ b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j @@ -483,7 +483,7 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio _DOMWindow.addEventListener("pagehide", function() { - _DOMWindow.removeEventListener("unload", arguments.callee, NO); + _DOMWindow.removeEventListener("pagehide", arguments.callee, NO); [self blurEvent:nil]; [self _notifyPlatformWindowWillClose];