There's an explicit provision in the Canada Elections Act that only Canadians and, as I said before, Canadian corporations and trade unions that have bargaining rights in Canada can donate to a political party.
On May 9th, 2006. See this statement in context.