Accessing the outer window from an inner window (such as its event target) should always be valid, even if the outer window isn't currently referring to the same inner window, because it's supposed to proxy all requests to the "current" inner window.
Why would we want non-current inner window to be able to initiate events? Generally previous HTML windows shouldn't be messing current one and detaching them seems like a nice way of enforcing it.