Browser detection inside a WebExtension - <Glazblog/>
glazman.org/weblog/dotclear/index.php?post/2018/06/07/Browser-detection-inside-a-WebExtensionSo the best and cleanest way is probably to rely on chrome.extension.getURL("/") . It can start with "moz", "chrome" or "ms-browser". Unlikely to change in the near future.