There are no public spaces on the Internet, except perhaps government websites. Everything else is a private space, maybe with public access.
Regulating "trolling" (however some legislator chooses to define that) would be regulating what people say and allow to be said in their own private websites.