Summary
If a user is using the VisualEditor interface and a hCaptcha widget is being executed, then exiting the save dialog before the conclusion of the execution causes the promise returned by hcaptcha.execute to never resolve
Steps to reproduce
- Enable hCaptcha on your wiki and make it trigger for all edits
- Open the VisualEditor edit interface with an account that does not have the skipcaptcha right
- Make some changes and then open the save dialog
- Click "Save changes"
- Press the "Esc" key while the save dialog has it's loading animation set
- Reopen the save dialog
What happens?
The save dialog does not allow the user to proceed with their edit because the save dialog is still in the pending state:
Acceptance criteria
- Closing the dialog mid hcaptcha execution should still allow the user to reopen the save dialog and submit the edit

