aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/language/MessageCacheTest.php
diff options
context:
space:
mode:
authorMusikAnimal <musikanimal@gmail.com>2025-02-12 20:46:37 -0500
committerMusikAnimal <musikanimal@gmail.com>2025-02-20 17:27:32 -0500
commitc73e4d62e87202c2433ddd7652a252b839e99302 (patch)
tree2a60d7ba3e36bd73971a14428609c46bc25718de /tests/phpunit/includes/language/MessageCacheTest.php
parent817e07006fd210d9937aba9701f94f534f1c1326 (diff)
downloadmediawikicore-c73e4d62e87202c2433ddd7652a252b839e99302.tar.gz
mediawikicore-c73e4d62e87202c2433ddd7652a252b839e99302.zip
SpecialBlock [Codex]: guard against race conditions on initial load
In UserLookup, check against the existing list=allusers query to validate the target instead of firing a separate API request to list=users. For targets supplied by URL param, pass in blockTargetExists and set that on the store's targetExists prop. Validation within UserLookup is now confined to the single validate() method. Remove the blur listener which conflicts with the above strategy (i.e. validate() could get called before the list=allusers query runs). The blur listener shouldn't be needed, anyway. This patch also moves the 'nosuchusershort' error to be on the UserLookup field itself, instead of atop the whole form – something Design and Product had requested from the beginning. Finally, update module styles to reflect recent styling changes (such as T383921) to reduce flashes of unstyled content. Bug: T380970 Bug: T384712 Change-Id: I8172a13ffb26080b872bbf4b1a5a4f823acf9380
Diffstat (limited to 'tests/phpunit/includes/language/MessageCacheTest.php')
0 files changed, 0 insertions, 0 deletions