Reviewers: jgw, Description: Description: =========== Under the current implementation, DOM#eventGetCurrentEvent() returns null in an UncaughtExceptionHandler if an error occurs in a user defined event handler. This is because we clear the current event before calling the UncaughtExceptionHandler.
This is unfortunate because it prevents users from logging the specific native event that triggered an exception. Fix: ==== I moved around some code so the current event is available in the UncaughtExceptionHandler. Testing: ======= I wrote a unit test for this fix and verified that it works on all browsers. Please review this at http://gwt-code-reviews.appspot.com/51802 Affected files: user/src/com/google/gwt/user/client/DOM.java user/test/com/google/gwt/user/client/ui/DOMTest.java --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
