Prime Minister Mark Carney's government is expected to table its long-awaited legislation aimed at online safety this week.