from what I understood from moz:firefoxOptions it is possible to pass environment variables to firefox process, but the corresponding class from selenium selenium.webd
selenium.webd