He was shamed for having shameful views, yes. "Personal beliefs" isn't a get-out-of-public-reproach-free card.
No one was compelled by any force of law here, either--he had beliefs that no longer meshed with contemporary views on equality and rights, and his peers, subordinates, and the world at large made it clear they didn't deem this appropriate.
> Q: Was Brendan Eich forced out by employee pressure?
> A: No. Mozilla employees expressed a wide range of views on Brendan’s appointment as CEO: the majority of them positive and in support of his leadership, or expressing disappointment in Brendan’s support of Proposition 8 but that they nonetheless felt he would be a good leader for Mozilla. A small number (fewer than 10) called for his resignation, none of whom reported to Brendan directly. However media coverage focused disproportionately on the small number of negative comments — largely ignoring the wide range of reactions across the Mozilla community.
No one was compelled by any force of law here, either--he had beliefs that no longer meshed with contemporary views on equality and rights, and his peers, subordinates, and the world at large made it clear they didn't deem this appropriate.