This is licenced under the tri-license for Mozilla projects. [http://www.mozilla.org/MPL/license-policy.html]

I'll leave the legal details over in the mozilla site at the above link, but here's my interpretation.

To be checked in to the Mozilla tree, new files must be licensed under the MPL tri-license. This license provides optimum flexibility for developers.
- If you have a GPL project, you may use this code without violating your GPL license.
- If you are a business, a government, or an individual you are free to use this code or make modifications to it.
- If you make changes to the code or distribute it, you are not under any obligation to credit us or deliver changes back to us. (Both would be appreciated, of couse)
- If you make changes to the code or distribute a binary containing the code, you are not under any obligation to distribute the source.
- You must leave the license sections intact in the source code.
Updating...