diff options
author | MusikAnimal <musikanimal@gmail.com> | 2025-02-12 20:46:37 -0500 |
---|---|---|
committer | MusikAnimal <musikanimal@gmail.com> | 2025-02-20 17:27:32 -0500 |
commit | c73e4d62e87202c2433ddd7652a252b839e99302 (patch) | |
tree | 2a60d7ba3e36bd73971a14428609c46bc25718de /tests/phpunit/includes/language/MessageCacheTest.php | |
parent | 817e07006fd210d9937aba9701f94f534f1c1326 (diff) | |
download | mediawikicore-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