Summary
In T422913: Rework mw.libs.confirmEdit.CaptchaInputWidget to not always require an input field, the mw.libs.confirmEdit.CaptchaInputWidget class was replaced with the mw.libs.confirmEdit.CaptchaWidget class. The latter supports hCaptcha. We should use CaptchaWidget in DiscussionTools instead of CaptchaInputWidget to allow hCaptcha to be enabled for that interface
Background & Technical details
- mw.libs.confirmEdit.CaptchaInputWidget relies on the idea that the captcha will always have an input field to be rendered
- This means that the mw.libs.confirmEdit.CaptchaInputWidget class has been deprecated and DiscussionTools should use the mw.libs.confirmEdit.CaptchaWidget class instead
- The CaptchaWidget class still supports all the captcha types supported by CaptchaInputWidget, so changing this does not represent a backwards step in compatibility
Acceptance criteria
- DiscussionTools uses mw.libs.confirmEdit.CaptchaWidget instead of mw.libs.confirmEdit.CaptchaInputWidget