Page MenuHomePhabricator

hCaptcha: Add support to mw.libs.confirmEdit.CaptchaWidget
Open, Needs TriagePublic

Description

Summary

mw.libs.confirmEdit.CaptchaWidget is defined as a way for other extensions and JS code to render captchas in a page. We should add hCaptcha support to it and refactor it to make it easier to use

Technical notes

  • The new mw.libs.confirmEdit.CaptchaWidget class is defined such that we can implement hCaptcha support in the class
    • This was needed because the methods, like creating the captcha interface and getting the captcha data fields for an API request were all synchronous operations and that does not work with hCaptcha that will execute async code during the submission process

Acceptance criteria

  • mw.libs.confirmEdit.CaptchaWidget supports hCaptcha

Event Timeline

Change #1277193 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ConfirmEdit@master] [WIP] ext.confirmEdit.CaptchaWidget: Add support for hCaptcha

https://gerrit.wikimedia.org/r/1277193

Dreamy_Jazz renamed this task from hCaptcha: Add support to mw.libs.confirmEdit.CaptchaInputWidget to hCaptcha: Add support to mw.libs.confirmEdit.CaptchaWidget.Apr 27 2026, 11:52 PM
Dreamy_Jazz updated the task description. (Show Details)

Change #1277193 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] ext.confirmEdit.CaptchaWidget: Add support for hCaptcha

https://gerrit.wikimedia.org/r/1277193