Summary
VisualEditor has a publish dialog after the user presses "Save changes...". Once this dialog appears, we add the disclaimer text ("This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply.") and when the user presses "Save changes" again, hCaptcha's bot detection code runs and presents a challenge to approximately 0.1% of human sessions. (There is also a "showcaptcha" AbuseFilter consequence that is used sparingly, and this can also result in a challenge appearing.)
In order to display the visual challenge, we need to resize the publish dialog so that hCaptcha's iframe has enough space to expand into, to present the challenge to the user.
Options:
- Expand the existing "Save your changes" dialog
- Switch to a new panel when a challenge is shown, and swap back to the previous panel when the challenge is closed/completed
The existing FancyCaptcha integration shows the input field for the CAPTCHA in the "Save your changes" dialog.
Acceptance criteria
- Editing team decides what their preference is for how the visual challenge is presented, between the two options listed above