If Firefox really cared more about privacy than about its money flow they would have disabled 3rd party cookies by default instead of explicitly hiding¹ that setting.
Apple can do it. There's no reason why Firefox can't. And if there is a reason, it should have been dealt with years ago.
--
¹ i just noticed that in Firefox 60, the setting is no longer as hidden as it used to be. Good!