Home / Function/ getFirefoxProfileName() — react Function Reference

getFirefoxProfileName() — react Function Reference

Architecture documentation for the getFirefoxProfileName() function in test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  30583a11_4e4b_0b59_b182_34bb7a719d5a["getFirefoxProfileName()"]
  3f7126f8_dd8a_c929_8c80_679e37354eb7["test.js"]
  30583a11_4e4b_0b59_b182_34bb7a719d5a -->|defined in| 3f7126f8_dd8a_c929_8c80_679e37354eb7
  9d488e49_ea19_1da4_d9ac_53e836a2d9a2["main()"]
  9d488e49_ea19_1da4_d9ac_53e836a2d9a2 -->|calls| 30583a11_4e4b_0b59_b182_34bb7a719d5a
  style 30583a11_4e4b_0b59_b182_34bb7a719d5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/firefox/test.js lines 15–32

const getFirefoxProfileName = () => {
  // Keys are pulled from https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#--firefox
  // and profile names from https://searchfox.org/mozilla-central/source/toolkit/profile/xpcshell/head.js#96
  switch (firefoxVersion) {
    case 'firefox':
      return 'default-release';
    case 'beta':
      return 'default-beta';
    case 'nightly':
      return 'default-nightly';
    case 'firefoxdeveloperedition':
      return 'dev-edition-default';
    default:
      // Fall back to using the default Firefox profile for testing purposes.
      // This prevents users from having to re-login-to sites before testing.
      return 'default';
  }
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does getFirefoxProfileName() do?
getFirefoxProfileName() is a function in the react codebase, defined in packages/react-devtools-extensions/firefox/test.js.
Where is getFirefoxProfileName() defined?
getFirefoxProfileName() is defined in packages/react-devtools-extensions/firefox/test.js at line 15.
What calls getFirefoxProfileName()?
getFirefoxProfileName() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free