This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Accessing Firefox profile name via add-on

  • 1 reply
  • 0 have this problem
  • Last reply by Paul

more options

Hi!

I've been browsing the web looking for a way to access the browser's current profile name programmatically. I'm writing a little browser extension that should run code conditionally depending on what the current profile is. I'm wondering if there's any way to do this? The closest thing I found was runtime.getBrowserInfo() runtime.getBrowserInfo().

Hi! I've been browsing the web looking for a way to access the browser's current profile name programmatically. I'm writing a little browser extension that should run code conditionally depending on what the current profile is. I'm wondering if there's any way to do this? The closest thing I found was [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getBrowserInfo runtime.getBrowserInfo()] runtime.getBrowserInfo().

All Replies (1)

more options

Hi

I recommend that you ask about this in the official add-ons forum at:

https://discourse.mozilla.org/c/add-ons/35

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.