From 5e9424394c770549c7ceee2d4c740b6272dc154f Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 25 Sep 2024 12:00:37 -0500 Subject: [PATCH] Reverted handling exceptions --- user/src/com/google/gwt/user/client/impl/WindowImpl.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/user/src/com/google/gwt/user/client/impl/WindowImpl.java b/user/src/com/google/gwt/user/client/impl/WindowImpl.java index 4025aefb20..fc7b78b336 100644 --- a/user/src/com/google/gwt/user/client/impl/WindowImpl.java +++ b/user/src/com/google/gwt/user/client/impl/WindowImpl.java @@ -62,12 +62,7 @@ public native void initWindowBeforeUnloadHandler() /*-{ try { ret = $entry(@com.google.gwt.user.client.Window::onClosing())(); } finally { - try { - oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt); - } catch (unhandled) { - // Pass to uncaught exception handler, if registered - $wnd.onerror(unhandled); - } + oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt); } // Avoid returning null as IE6 will coerce it into a string. // Ensure that "" gets returned properly.