Test that window properties set for initial document are reset if port security check fails