That's all very well: but what happened if the spouses separated?
They learned to their shock and chagrin that though Canada would marry them, Canada would not divorce them. There was a requirement under the Divorce Act that a person had to be resident in a Canadian province for a year before they could file for divorce- a requirement impossible to meet for many non-Canadians.
The Divorce Act has now been amended to provide that non-residents who married in Canada can get a divorce. The new provisions came into effect August 14, 2013.
The requirements are that the spouses be living apart for at least one yer; neither of them lives in Canada when the divorce is applied for; both of the spouses are now living in a state in which divorce for same sex partners is not available because that state does not recognize same sex marriage.
The application for the divorce must be made in the same province where the marriage was performed.