Scott,
Can you have a look at this change for me? It fixes a typo in the Window.init() method that was causing onunload, etc. to not get cleaned up on shutdown. This does not seem to have been causing problems anywhere except when *closing* a window on IE (not refreshing or navigating away). Go figure.
A couple of notes:
- I took a moment to revisit the reason for __gwt_initHandlers() in the first place. It turns out that when the script is running in an iframe, it can't set window.onbeforeunload, at least on IE). So its existence is still justified.
- I moved the cleanup code into the selection-script templates, because it didn't make sense for it to be where it was (and onbeforeunload can't be set from within the script frame anyway).
Affected files:
M dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js
M dev/core/src/com/google/gwt/core/linker/XSTemplate.js
M dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
M dev/core/src/com/google/gwt/core/linker/SingleScriptTemplate.js
M user/src/com/google/gwt/user/client/Window.java