Page MenuHomePhabricator

hCaptcha: Only display challenge on form submission
Closed, ResolvedPublic

Description

Summary

Currently, we immediately execute hCaptcha as soon as the user interacts with the account creation form. This reduces submission delay but may interrupt the signup flow by potentially showing an intrusive challenge. We would instead like to defer executing hCaptcha until the user submits the form.

Acceptance criteria

  • hCaptcha challenge does not display until user presses the submit button
  • hCaptcha JS loads on first form interaction

Event Timeline

Change #1181115 had a related patch set uploaded (by Kosta Harlan; author: Máté Szabó):

[mediawiki/extensions/ConfirmEdit@master] hcaptcha: Delay challenge execution until submit

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

Change #1181115 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hcaptcha: Delay challenge execution until submit

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

Change #1181130 had a related patch set uploaded (by Kosta Harlan; author: Máté Szabó):

[mediawiki/extensions/ConfirmEdit@wmf/1.45.0-wmf.15] hcaptcha: Delay challenge execution until submit

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

Change #1181130 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@wmf/1.45.0-wmf.15] hcaptcha: Delay challenge execution until submit

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

Mentioned in SAL (#wikimedia-operations) [2025-08-25T06:43:23Z] <kharlan@deploy1003> Started scap sync-world: Backport for [[gerrit:1181130|hcaptcha: Delay challenge execution until submit (T402641)]]

Mentioned in SAL (#wikimedia-operations) [2025-08-25T07:08:29Z] <kharlan@deploy1003> kharlan: Backport for [[gerrit:1181130|hcaptcha: Delay challenge execution until submit (T402641)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-08-25T07:24:46Z] <kharlan@deploy1003> Finished scap sync-world: Backport for [[gerrit:1181130|hcaptcha: Delay challenge execution until submit (T402641)]] (duration: 41m 22s)

kostajh updated the task description. (Show Details)