Personally, I don't think the Firefox version looks any worse than the Safari version, they're just different. It comes down to preference. Just like you saying it's the ugliest tab bar which I very much disagree with.
For example, one of the major considerations when doing UI design is creating elements that have a cohesive style (regardless of which aesthetic style that is).
None of that happened on that god forgotten alert. It's probably the first thing that someone came up with in a rush, in a style that no other UI element of FF shares, and it has stayed like this probably because nobody cares.