Here's an example. Brendan Eich became CEO of Mozilla. Someone tweeted that he donated money to the side fighting against gay marriage. The internet mob did their thing. Brendan Eich was forced to resign.
I disagree with his political choice. But I defend his right to make a political choice, and not be fired because of it.
You shouldn't get fired from any job for your political choices.