Page MenuHomePhabricator

hCaptcha: confirmEdit.hCaptchaRenderCallback events don't seem to trigger the corresponding subscribers
Closed, ResolvedPublic

Description

See https://wikimedia.slack.com/archives/C07BN6C5118/p1780327857241199

While debugging on https://pt.wikipedia.org/wiki/Ajuda:P%C3%A1gina_de_testes/1, we observed that mw.trackSubscribe( 'confirmEdit.hCaptchaRenderCallback', ...) in hCaptcha.js (MediaWiki-extensions-WikimediaEvents) is called to setup instrumentation, but then the callback itself does not seem to be called at all when using the MobileFrontend (while debugging, breakpoints set within it won't stop the execution in my browser)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz subscribed.

I was able to get the debugger statements to run if a visual challenge is shown, though not sure if this was just fixed by our fixes for other hCaptcha instrumentation. I've asked @hector.arroyo to see if they can retest this

• hector.arroyo claimed this task.

We've deployed a change to use a new interface name for the MobileFrontend and now it seems the subscriber for the confirmEdit.hCaptchaRenderCallback event in the MobileFrontend is working as expected. I'm closing this task now.

image.png (1,920×1,044 px, 618 KB)