It wasn't a great policy before. It's not great now. Hiding who you are to avoid ridicule doesn't solve the problem. If the majority opinion is safe to express, but your opinion isn't, then being forced to hide doesn't actually solve the problem. Even if you hide your views, you may get asked why you don't support the majority's viewpoints.
As others have said, it goes both ways: liberal in a red state, conservative in a blue state.
At the end of the day, the people you meet at work are not there because they want to be friends. They're there for one reason: to make money. If you respect other people's boundaries then they respect you.
[1] https://www.fastcompany.com/3028664/lgbt-programmers-speak-o...
How is this different to what the OP said?
The gay employees of Mozilla were understandably upset when he became CEO, and since the Bay Area in general is pretty progressive, many other employees were also upset. They were looking for new employers.
I gave an anti-miscegenation analogy earlier. How is this different from a CEO making a public donation to The Daily Stormer (perhaps pointing to the stories of Judas and Cain as justification) and the Jewish and non-white employees and their allies not wanting to work for him? You cannot take public action to vilify your employees and deny them civil rights and expect them to keep working for you.
[1] https://youtu.be/pSb3jiuIhUM
[2] http://observer.com/2012/04/tech-celeb-makes-prop-8-donation...
You already see why posting that was a bad idea because you're primed to argue, even though you know it won't go anywhere.
I bring it up because the outrage is clearly so manufactured, not because I'm "primed to argue, even though I know it won't go anywhere."
Unpopular with a powerful lobby within the liberal tech industry, yes.