AFAIK the law here in Ontario is that pedestrians can cross mid-block on a non-controlled-access-highway (ie a regular road not expressway) as long as any oncoming vehicles have plentiful space to safely come to a complete stop. You only lose the right-of-way as a pedestrian if you’re doing something that forces drivers to make emergency manoeuvres.