Passing on the right is always illegal and a bad idea in general.
I do creep up to the front of the line if traffic is bad, but I prefer go between the cars.
From the Highway Traffic Act
Passing to right of vehicle
150. (1) The driver of a motor vehicle may overtake and pass to the right of another vehicle only where the movement can be made in safety and,
(a) the vehicle overtaken is making or about to make a left turn or its driver has signalled his or her intention to make a left turn;
(b) is made on a highway with unobstructed pavement of sufficient width for two or more lines of vehicles in each direction; or
(c) is made on a highway designated for the use of one-way traffic only. R.S.O. 1990, c. H.8, s. 150 (1).