You've just described the media-hype misuse of the term "hacker". Actually, most of the open source community is made up of hackers, in the classic sense of the term -- the truer, purer sense of the term.
From http://www.catb.org/~esr/jargon/html/meaning-of-hack.html
"Hacking might be characterized as 'an appropriate application of ingenuity'. Whether the result is a quick-and-dirty patchwork job or a carefully crafted work of art, you have to admire the cleverness that went into it."
From http://www.catb.org/~esr/jargon/html/H/hacker.html
1. "A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed to most users, who prefer to learn only the minimum necessary. RFC1392, the Internet Users' Glossary, usefully amplifies this as: A person who delights in having an intimate understanding of the internal workings of a system, computers and computer networks in particular."
2. "One who programs enthusiastically (even obsessively) or who enjoys programming rather than just theorizing about programming."
3. "A person capable of appreciating hack value."[1]
4. "A person who is good at programming quickly."
5. "An expert at a particular program, or one who frequently does work using it or on it; as in 'a Unix hacker'. (Definitions 1 through 5 are correlated, and people who fit them congregate.)"
6. "An expert or enthusiast of any kind. One might be an astronomy hacker, for example."
7. "One who enjoys the intellectual challenge of creatively overcoming or circumventing limitations."
There's a reference to the definition you're using:
8. "[deprecated] A malicious meddler who tries to discover sensitive information by poking around. Hence password hacker, network hacker. The correct term for this sense is cracker."[2]
What you're talking about is a "cracker", not a "hacker". More descriptively, such a person might be known as a "security cracker". Many people branded "hacker" are not only not hackers, though: they are also often not even crackers, but merely vandals using tools created by more-skillful crackers. This latter breed of vandals is often known by the pejorative term "script kiddie".
As a hacker in the classic sense of the term myself (or, at least, I've been called such by others who know what it means, and am proud of the fact), I find the common misconceptions about the meaning of the term "hacker" to be disappointing at best and offensive at worst.
So, armed with this new knowledge, be sure that a lot of the Mozilla code contributors are indeed hackers, but not in the sense you seem to think.
- - - - -
[1] http://www.catb.org/~esr/jargon/html/H/hack-value.html
[2] http://www.catb.org/~esr/jargon/html/C/cracker.html