Page MenuHomePhabricator

Fix older chrome browsers are unable to submit edit in Basic mode
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • You are redirected to the same page again with the error

Incorrect or missing CAPTCHA.

What should have happened instead?:

  • You should see the hCaptcha challenge and be able to solve it and save the edit

Other information (browser name/version, screenshots, etc.):

  • Chrome browsers from 81 to 64

Version older than 64 don't even get the js delivered (See https://phabricator.wikimedia.org/T178356)
Versions newer than 81 shouldn't have this bug.

Assuming your local web dev site is at https://en.mediawiki.localhost:8443

Run

docker rm -f old-chrome && \                                                                   
docker run -d --name old-chrome --network oldff \
  -p 5900:5900 \
  --add-host=en.mediawiki.localhost:host-gateway \
  --shm-size=2g \
  -e SCREEN_WIDTH=1920 \
  -e SCREEN_HEIGHT=1080 \
  selenium/standalone-chrome-debug:3.8.1

Then connect over vnc with password "secret": vncviewer localhost:5900

Inside vnc go to en.wikipedia.org to see the bug, of if you're testing this locally you can run from bash:

google-chrome \
  --no-sandbox \
  --disable-setuid-sandbox \
  --host-resolver-rules="MAP en.mediawiki.localhost 172.17.0.1" \
  https://en.mediawiki.localhost:8443/wiki/Main_Page

After you're done testing: docker stop old-chrome

Event Timeline

Change #1283815 had a related patch set uploaded (by Mpostoronca; author: Mpostoronca):

[mediawiki/extensions/ConfirmEdit@master] Fix older chrome browsers are unable to submit edit in Basic mode

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

Change #1283815 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: allow older Chrome browsers (64-80) to submit edit

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

dom_walden subscribed.

On testwiki, I have tried editing on various versions of Chrome from 64 to 81 and I was able to successfully publish in the WikiEditor, completing the hCaptcha challenge when necessary.