Third level domain ssl certificates acceptance

Hi.
Firefox rises a certificate error for third level domains (typically www.site.com) when the certificate is issued to site.com, whereas others browsers (Chrome, Edge) assume it is ok.
Is this a choice due to some exploitable scenario, or is it simply a missing regexp check?
Thanks