The problem is that the current system in practice legally protects certain opinions. E.g. If Eich was pro gay marriage and vocally so, firing him on that basis would have been very risky legally. Especially if he was gay, it would probably be impossible to fire him without losing an expensive lawsuit afterwards.