It isn't just china. You can be fired for offending european sensibilities. You can be fired for offending saudis/muslims/etc. Of course we already have examples of tech workers being fired for conservative opinions. But the most egregious example is israel, where it is illegal for an american citizen to boycott israel.