Page MenuHomePhabricator

"Show IP" button not shown on Special:Block if form has username pre-filled
Closed, ResolvedPublicBUG REPORT

Description

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

  • Login into an account that can block users and has the temporary account IP viewer right
  • Load Special:Block/*Unregistered 1

What happens?:
"Show IP" button is not shown

What should have happened instead?:
The "Show IP" button should appear because the username field is pre-filled with a temporary user

Software version (skip for WMF-hosted wikis like Wikipedia):
CheckUser master branch on local wiki

Other information (browser name/version, screenshots, etc.):
Was fixed in T332136 but reintroduced by T334713 / https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/904602/

Found when testing patch for T335392, but issue is present without the associated patch applied (so unrelated to that change).

Example:

image.png (277×1 px, 32 KB)

Event Timeline

Dreamy_Jazz moved this task from Inbox to Temporary account IP reveal on the CheckUser board.

Could I suggest that a test be added to ensure the "Show IP" button appears if the form is pre-loaded?

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

[mediawiki/extensions/CheckUser@master] Trigger onTargetChange when page loads

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

Dreamy_Jazz triaged this task as Medium priority.

Change 915827 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Trigger onTargetChange when Special:Block loads

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

Patch merged. Should be okay to close this now. A better name for onTargetChanged is probably needed per the discussion in the task.