A class action targeting Victoria Police over its use of capsicum spray against protesters has lost its bid to uncover confidential information about police crowd control tactics, after a judge found disclosure of the information could “endanger the public”.