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: PASS: pagehide fired. PASS: load fired.