This article explains how to set Gmail as the default email program for your Firefox browser by changing the browser settings. Instructions apply to the Firefox web browser on Windows and macOS computers.
How to Change Default Gmail Account in Chrome, Firefox, or Microsoft Edge
Change the settings in Firefox to make Gmail the default for mailto: links.
Select the menu (three lines) in the top right corner of the browser.
Go to the General tab.