Test that window properties set for initial document are kept if security check passes