I would not claim which project has the best trademark policy to emulate. My comment is mostly to illustrate how a software license is handled separated from trademark agreements and that practically every major free software project and non-profit foundation has a trademark policy. The FSF/OSI guides are also very illustrative in how those communities view trademark law compared to copyright law.
The Mozilla trademark dispute is mostly an example of a non-profit free software community being in a trademark dispute with an other non-profit free software community, and which initial solution was simple and direct. Changing the name and icon resolved the disputed until 10 years later where Mozilla lawyers decided that the Debian version was close enough to Mozilla version that it could be argued as being identical, in which the package returned to using the trademarks owned by Mozilla. I am not sure if people really despise Mozilla for it, but I recall that people found it a major waste of time. There is just so much energy that people will spend arguing about a name and an icon.
For the second, using variations of a product name was common and not equivocal, their new policy was a major hassle; it also made it harder for forks of Mozilla to be discovered, and placed a serious burden on making them.
It was just not in the spirit of open source software.
The Mozilla trademark dispute is mostly an example of a non-profit free software community being in a trademark dispute with an other non-profit free software community, and which initial solution was simple and direct. Changing the name and icon resolved the disputed until 10 years later where Mozilla lawyers decided that the Debian version was close enough to Mozilla version that it could be argued as being identical, in which the package returned to using the trademarks owned by Mozilla. I am not sure if people really despise Mozilla for it, but I recall that people found it a major waste of time. There is just so much energy that people will spend arguing about a name and an icon.