-
Notifications
You must be signed in to change notification settings - Fork 1
Description
web-ext-utils/browser/version.esm.js
Line 45 in c542ae4
| const version = (() => { switch (true) { |
There are many browsers with useragents that do not fit in this list. One such is some builds of LibreWolf (at least on Linux) where, in the WebExtension context, navigator.userAgent is set to something similar to Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 librewolf/134.0.1-1. For this reason, TST Tab Search which uses this library is not able to load at all for me.
The error is:
Failed to load main module module!background/index: TypeError: /Firefox\/((?:\d+.)*\d+)/.exec(...) is null
version moz-extension://a1b22370-6902-473a-9821-8051b1f0864b/node_modules/web-ext-utils/browser/version.esm.js:50
There should at least be a sane fallback if explicit support for non-mainstream browsers is not expected. Or, just force it to a specific value depending on build parameters... Like, TST Tab Search for example is never going to be on a non-Firefox(-like) browser, since TST is a Firefox-only extension.