Glock was forced to change their original design (Gen 1) for the frame and added a metal serial number plate imbedded in it.
Countries vary as to which part of the firearm is the controlled item. Fortunately, US and Canadian rules on that aspect
are pretty much the same - the frame.