Page MenuHomePhabricator

MobileFrontend hCaptcha: If a user clicks off the visual challenge during AbuseFilter consequence save, user cannot reopen the visual challenge or proceed with their edit
Closed, ResolvedPublicBUG REPORT

Description

Summary

If a user sees a Bot detection and mitigation (WE4.2 hCaptcha editing trial) visual challenge in MobileFrontend and then click off that visual challenge, the user will be unable to proceed with their edit because the save button remains a spinning icon

Steps to reproduce

  • Create an AbuseFilter filter that has the showcaptcha consequence and can be triggered for a test edit
  • While logged out, make an edit using the mobilefrontend interface that triggers the AbuseFilter filter created above
  • Wait for the visual challenge to be shown
  • Click on outside the visual challenge to close it or wait for it to expire

What happens

Try to find a way to continue with the edit and see no way to continue, without closing the save dialog and reopening it

image.png (855×2 px, 65 KB)

What should happen instead

The loading animation on the save button should be replaced with the save button again and the user should be able to press it again to proceed with their edit

Acceptance criteria

  • If a user clicks off the visual challenge, then the edit can still continue by pressing save again

Event Timeline

hector.arroyo renamed this task from MobileFrontend hCaptcha: If a user clicks of visual challenge during AbuseFilter consequence save, user cannot reopen the visual challenge or proceed with their edit to MobileFrontend hCaptcha: If a user clicks off the visual challenge during AbuseFilter consequence save, user cannot reopen the visual challenge or proceed with their edit.Apr 20 2026, 3:35 PM

Change #1275927 had a related patch set uploaded (by Harroyo-wmf; author: Harroyo-wmf):

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: Fire hooks on challenge open/close and always load MF module

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

Change #1275951 had a related patch set uploaded (by Harroyo-wmf; author: Harroyo-wmf):

[mediawiki/extensions/MobileFrontend@master] hCaptcha: Go back to summary screen when an AF-triggered captcha is closed

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

Change #1275927 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: Open and close hooks, don't require a flag to load modules

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

Change #1275951 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] hCaptcha: Open the summary screen if an AF-triggered captcha is closed

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

@hector.arroyo Testing locally, after dismissing (either by clicking away or pressing esc) the challenge and being returned to the edit summary page, clicking the Save/Publish button does not seem to do anything. I see some calls to hCaptcha being made but nothing appears on screen (perhaps it is hidden?)

I've just double-checked how the MobileFrontend behaves when an AbuseFilter triggers the captcha consequence and I was able to close the challenge various times, and then I was able to solve the captcha and save the edit.

Tested with the current master branches of MobileFrontend and ConfirmEdit.