| 13 | const firefoxVersion = process.env.WEB_EXT_FIREFOX; |
| 14 | |
| 15 | const getFirefoxProfileName = () => { |
| 16 | // Keys are pulled from https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#--firefox |
| 17 | // and profile names from https://searchfox.org/mozilla-central/source/toolkit/profile/xpcshell/head.js#96 |
| 18 | switch (firefoxVersion) { |
| 19 | case 'firefox': |
| 20 | return 'default-release'; |
| 21 | case 'beta': |
| 22 | return 'default-beta'; |
| 23 | case 'nightly': |
| 24 | return 'default-nightly'; |
| 25 | case 'firefoxdeveloperedition': |
| 26 | return 'dev-edition-default'; |
| 27 | default: |
| 28 | // Fall back to using the default Firefox profile for testing purposes. |
| 29 | // This prevents users from having to re-login-to sites before testing. |
| 30 | return 'default'; |
| 31 | } |
| 32 | }; |
| 33 | |
| 34 | const main = async () => { |
| 35 | const finder = new Finder(); |