Background
Since T324602: SpecialBlock: Once a temporary account is selected, below the username field display IP addresses associated with the account the target widget on Special:Block is a UsersMultiselectWidget, with limit 1.
This means that calling getValue() on the widget now returns an array, rather than a string.
Loading Special:Block causes a JavaScript error: Uncaught TypeError: blockTargetWidget.getValue(...).trim is not a function, because this line is expecting getValue() to return a string:
function updateWatchOption() { var blocktarget = blockTargetWidget.getValue().trim(),
We should cast the value to a string before calling trim.
Acceptance criteria
This error is no longer encountered on loading Special:Block