MCPcopy Index your code
hub / github.com/react/react / getFirefoxProfileName

Function getFirefoxProfileName

packages/react-devtools-extensions/firefox/test.js:15–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const firefoxVersion = process.env.WEB_EXT_FIREFOX;
14
15const 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
34const main = async () => {
35 const finder = new Finder();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected