Page MenuHomePhabricator

hCaptcha: Load in secure enclave mode on interaction wikitext editor
Closed, ResolvedPublic0.25 Estimated Story Points

Description

Summary

Similar to the Special:CreateAccount implementation, we only want to load hCaptcha when we see that a user is going to interact with the wikitext editor form.

Acceptance criteria

  • hCaptcha JS is only loaded once a user begins interacting with the wikitext form
  • hCaptcha JS is loaded via secure enclave, if the configuration option is set

Event Timeline

kostajh renamed this task from hCaptcha: Load lazily on wikitext editor to hCaptcha: Load in secure enclave mode on interaction wikitext editor.
kostajh updated the task description. (Show Details)
kostajh set the point value for this task to 0.75.

@kostajh should we load hCaptcha when a user focuses the wikitext textarea or when they start typing into it?

We listen for a focus for the create account form and as such it would be much easier to listen for a focus instead of entering text.

@kostajh should we load hCaptcha when a user focuses the wikitext textarea or when they start typing into it?

We listen for a focus for the create account form and as such it would be much easier to listen for a focus instead of entering text.

I think focus would be fine.

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

[mediawiki/extensions/ConfirmEdit@master] hCaptcha secure enclave: Load hCaptcha SDK on textarea focus

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

Change #1194284 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hCaptcha secure enclave: Load hCaptcha SDK on textarea focus

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