Canada has introduced legislation to combat online hate and abuse that would force major tech companies to quickly remove harmful content and increase criminal penalties for hate-related offenses.