Being allowed employment and being the leader of a diverse company including people you've helped to discriminate against are two different things.
He was fine as a CTO because of his brilliant technical mind. His actions, however, make him unfit to lead an organization as diverse as Mozilla.