How to determine in which browser your extension background script is executing?
I'm talking about Chrome extensions, Firefox WebExtensions, Edge extensions... In a background script, not a content script, is there a clear way to know which browser I am using? I need to do different operations for different browsers. Yes, navigator.userAgent can be useful, but it's not very clear . Is there any extension API that can be used to do this? Something like, chrome.extension.browserType . (Of course, this one doesn't really exist..) Makyen There is no specific API to detect which browser is currently being used. One of the benefits of the major browsers moving to support a