Test that window event handlers set for initial document are kept if security check passes. There will be 2 'PASS' messages below if the test passes:
FAIL