Mozilla WebExtensions support for Firefox profiles

I want to create a Firefox Addon using WebExtensions that will;

  • Display user, list of already created Firefox profiles
  • Profile switching capability

Also like User Agent Switcher (it was built on top of the Mozilla Addon SDK). See https://www.screencast.com/t/Zj4AkTmFfA

I can't find a link to the api https://developer.mozilla.org/en-US/Add-ons/WebExtensions to access the profile list or switch profile.

Not sure if Mozilla is going to remove access to Firefox profiles from WebExtensions as they have limited access to Firefox preferences (about: config).

+3


source to share


1 answer


I'm afraid there is currently no API for working with user profiles. Besides the list in MDN, there is a list of APIs that have been approved and are being implemented.

However, there is one possibility in the medium term: you can file a bug to request support for a new API. This does not necessarily mean that your request will be implemented, but it does mean that it will at least be discussed. Here 's how to do it.



If none of these options apply to your situation, you might consider making an API request. Before you do this, keep in mind:

  • The goal of WebExtensions is not to support all legacy extension use cases. In most cases, the required functionality can be built using the WebExtensions APIs, but this requires some rethinking and modification.
  • Generic or very broad errors are difficult to turn into problematic issues. Try to limit focus if possible.
  • We are trying to review all incoming API requests, but it takes time, so please be patient.
  • Do a search to see if the error exists.
  • Still want to create a new API? You can do it here .

Note that there are ideas for accessing the Firefox 57 file system: this could potentially be used to at least display different user profiles.

+1


source







All Articles