There is a new web feature called maskable icons that is coming soon to Firefox Preview and other web browsers.