Page MenuHomePhabricator

hCaptcha: Implement message for no JS users
Closed, ResolvedPublic

Description

Summary

Users without skipcaptcha right, and with JS disabled, will see a Incorrect or missing CAPTCHA. error. We should inform the user that JavaScript is required.

Screenshot 2025-09-30 at 10.39.53 PM.png (1,954×686 px, 165 KB)

Technical note

  • Add new message key hcaptcha-noscript with the following message: JavaScript is required to continue. Turn on JavaScript in your browser settings and refresh the page.
  • Implement <noscript> tag in HCaptchaOutput to display the message when JavaScript is disabled

Acceptance criteria

  • Users without skipcaptcha who have JavaScript disabled see a more informative message
  • Users with skipcaptcha right can bypass CAPTCHA regardless of JavaScript state
  • Users without skipcaptcha but with JavaScript enabled continue to see normal output

Event Timeline

(Probably wrong ticket, but this needs to be said)

The consequence of this is that users who use Grade C browsers (and thus don't get JS) can't create accounts at all, right? This contradicts the description at https://www.mediawiki.org/wiki/Compatibility#Grade_C - wouldn't it make more sense to fall back to FancyCaptcha for noJS browsers rather than just stonewalling them?

sguebo_WMF changed the task status from Open to In Progress.Sep 30 2025, 1:47 AM
sguebo_WMF updated the task description. (Show Details)

Change #1192310 had a related patch set uploaded (by Samuel (WMF); author: Samuel (WMF)):

[mediawiki/extensions/ConfirmEdit@master] [WIP] hCaptcha: Display message for users without JS

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

Change #1192310 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: Display message for users without JS

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