This has been the case for many years. US Border Control agents clear airline passengers at Pearson Airport before you get to the US departures area gates. (Has nothing to do with Justin Trudeau. )
That all changed last week as a bill was introduced giving American border agents the power on Canadian soil to detain Canadians for something as simple as changing your mind. Up to now you could just walk away.