Firefox profiles: Private, focused spaces for all the ways you browse

156 pointsposted 8 days ago
by darkwater

71 Comments

bluebarbet

6 hours ago

Profiles are great. I've used them for years. Much better than containers, which separate your data sort-of-but-not-quite. A profile folder has everything. You can copy it, back it up, plug it into a completely new Firefox installation later.

That portability is a killer feature, but scriptability needs to be improved. The manual says you can do:

>`firefox --profile <path> Start with profile at <path>`

But that will not work as expected if you have more than one profile (which is the whole point). At present the only workable solution is to fiddle with a GUI thru `about:profiles` (or `firefox --ProfileManager`) in order to create the profiles and give them all-important UIDs. And then do:

>`firefox -P <UID>`

It may seem small, but I've found that this is a serious roadblock. I wish it could be fixed so as to make profiles entirely scriptable.

PS: to be clear, after the futzing with the GUI to create the profiles, my script works (well!) at opening windows in the right profile, this way: (1) Check if the given profile is already launched: `ps -eo args | grep -E ".(firefox).(-P $UID)" | grep -v grep > /dev/null` (2) Do `firefox -P $UID --new-instance $url` if it isn't, and `--new-tab` if it is. Inelegant, but very reliable.

Brybry

3 hours ago

In Windows 10 I have shortcuts pinned to my taskbar that are just

> ...firefox.exe" -P "profilename"

and then `taskbar.grouping.useprofile true` so only windows from the same profile are grouped together and some custom recolored Firefox icons for those pinned shortcuts and custom per-profile userChrome.css styling (#TabsToolbar background-color) for easy visual differentiation of a window's profile.

For Windows 10, no scripting is needed. Just the initial GUI profile setup.

> ...firefox.exe" -P "profilename" "https://www.example.com"

from terminal works exactly as expected regardless of how many profile instances are currently running or their state.

You can even have multiple versions of Firefox installed and point them at different profiles. I have some profiles on ESR and some on Standard.

dare944

3 hours ago

I do this on Linux (Mint) and it works as expected.

conaclos

5 hours ago

Have you tried `firefox --no-remote --profile <path>`?

In my case, I am able to launch several Firefox instances with distinct profiles.

o11c

5 hours ago

Note that `--no-remote` breaks starting new browser windows from outside, which users normally want.

I'm starting to think that setting the `HOME` environment variable is the only way to really make things isolated - this still won't handle `~insertusernamehere` but basically everything else respects it.

glandium

an hour ago

--no-remote doesn't do anything anymore. It was removed about a year ago if memory serves.

rc_kas

2 hours ago

I do `open -n "/Applications/Firefox.app" --args -p myprofilename` and that does the trick on mac

bluebarbet

5 hours ago

Yes, I tried that and everything else. Either it refuses to launch with `--new-instance` or (from memory, in the case of your command) subsequent `--new-tab`s may open in the wrong profile. Presumably due to the order in which the original instances were created. The point is that the system turns on these UIDs, which are not paths or even hashes of paths.

celsoazevedo

3 hours ago

> A profile folder has everything. You can copy it, back it up, plug it into a completely new Firefox installation later.

These new profiles seem to be slightly different from the old ones?

[edit: ignore most of the stuff below, see replies]

The new UI doesn't show your other regular profiles and when you create a new profile via the new UI, it also doesn't create a separate profile folder (it's part of your active profile). They're like sub profiles... probably to allow everything to be synced via a Firefox account?

We can still move the profile folder. The difference is that what's created with the new UI is part of that folder (the old about:profiles page is still there and old style profiles are still supported).

Yaina

3 hours ago

It still creates separate folders but you're right that about:profiles seems to treat them as the same.

When you open about:profiles in both your "new" profiles, you can see that even though it has the same name, the path changes.

So I think in effect they still behave like profiles before, just with some extra logic on top so they have names, icons and so on.

ghostly_s

5 hours ago

Tried containers when it was released but found it very inconvenient to manage. If I understand this solution doesn't even let you have two profiles open at once? That's even less useful imho.

edit: I use Simple Tab Groups which is far more featureful - "Send tab to [group/container/etc]" for example is table stakes.

bluebarbet

5 hours ago

Of course you can have them open at once, that's what's useful. I have four! And I can open subsequent windows in the right profile, no problem. But it required non-trivial scripting.

cassepipe

3 hours ago

I personnally went for extensions using them. I downloaded, Google, Facebook, Amazon, Youtube containers extensions.

I have had issues with Youtube and Google together. I think I solved it using the "Don't track me Google extension" but I am not so sure anymore

jmakov

5 hours ago

The most useful feature with the worst UX. You have to type about:profiles and then create a new profile. But imagin you now want to move old profiles to a new computer and FF happens to run in a Flatpack. Yeah, much fun

fa3556

3 hours ago

You can (now?) create profiles from the account icon in the toolbar [1] and at least on my firefox install, you can also do it from the hamburger menu.

I use firefox via flatpak and had no issues so far accessing profile data (in one of the folders in ~/.var/app/org.mozilla.firefox/.mozilla/firefox/ - I keep a regular archive of the entire folder as backup).

[1] https://support.mozilla.org/en-US/kb/profile-management

kiwijamo

2 hours ago

Maybe it hasn't been rolled out to me yet. Or it might be because I'm not logged into a Firefox profile? It is only availiable to those logged in?

fa3556

2 hours ago

No I don't use sync at all. I think it might just require `browser.profiles.enabled` to be set to true in about:config, at least until wider rollout.

dare944

3 hours ago

> Not all users will see the new Profiles menu in the toolbar, since this feature is being rolled out gradually

I don't see it yet, but hopefully soon.

fa3556

2 hours ago

You could use the about:config preference browser.profiles.enabled in the meantime I suppose.

mvx64

3 hours ago

I found out about profiles recently and I just couldn't believe that that's the standard way to access them. Also, it's not obvious which profile you are currently on, so there are some silly but necessary workarounds like having a dummy bookmark with the profile name on each or something like that, while it could just be a string next to the address bar.

It works really well though. Does exactly what I would expect and hope from such a feature.

agumonkey

5 hours ago

there's an old '-P' flag that shows a small ui

see https://imgur.com/a/Tmt3oEL

Am4TIfIsER0ppos

3 hours ago

That used to be a start menu entry in the old days. I had heard it was removed but to my surprise -P works on my current linux. I'll have to see if it does actually start a new profile.

sorcercode

8 days ago

for the most part I've been using Firefox containers and loving that life of getting the same benefits without having to create separate profiles.

but it's nice to see this finally get into Firefox because there are still a lot of folks who also want to maintain things like browser bookmarks, passwords etc in a separate profile. that's the only conceivable useful difference over Containers (which IMHO is slightly better than having to manage multiple profiles)

happymellon

8 days ago

> that's the only conceivable useful difference over Containers

But thats a massive difference.

I have work profiles and a personal profile. I have password manager profiles for clients (clients will provide their own PM logins to segregate their access) which are different between them, and having separate profiles is huge.

Containers are great, especially for crappy websites that use your sessions for tracking which page you are on, but they are no where near powerful enough.

degamad

4 hours ago

You've hit on the relevant distinction: user context vs system context.

I use containers to separate system context (partitioning cookies and site data) while remaining in the same user context (e.g. "personal browsing").

I use profiles for when I need different user contexts (different bookmarks and frequently used sites for different clients or projects).

When only one tool is available, you are limited by the constraints of that tool (e.g. bookmarks bleeding over between user contexts when using containers, or having to copy extensions or bookmarks into every profile).

sorcercode

7 days ago

that's fair (and glad profiles have finally arrived in FF for that reason); personally, i don't use password managers linked to any specific browser but i can understand your use case.

sudobash1

6 hours ago

> that's the only conceivable useful difference over Containers

Actually, I have wanted better profile support for a while to segregate addons. There are plenty of addons that I want to use occasionally that require full data access. I generally do trust them, but even so, I keep these in a separate profile just in case. That is something that can't be done with containers.

sfRattan

3 hours ago

> There are plenty of addons that I want to use occasionally that require full data access. I generally do trust them...

Seconded, except I don't trust most add-ons and don't want to have to trust them.

I want an easy way to launch a disposable browser session in any browser, totally isolated, with add-ons chosen (and downloaded) at launch time, and then erased of with the rest of the session when its last open page is closed.

attendant3446

5 hours ago

Profiles were in Firefox for a long time now. It looks like they finally have made a proper UI for it.

thyrsus

17 minutes ago

I've got Firefox 144.2 on Android; are profiles available there? If so, how does one use them?

Ingon

an hour ago

Been using profiles for some years now and they are great. I usually start with the default profile, then navigate to "about:profiles" to open all I need. Thanks to profiles, when my manjaro install broke, I migrated to NixOS and all my browsing sessions were ready to use the way I left them. Getting a dedicated, more integrated UI for managing profile will be great.

The one thing I'm missing is "incognito" profiles - e.g. spawn a temporary profile (without any identity attached) easily when I'm researching/navigating unusual sites and kill it once I'm done. Having multiple of these would be a great improvement over normal incognito windows (which share identities).

throwaway106382

5 hours ago

I'm happy this is getting a new UI. Always been a pain to use compared to Chrome profiles.

Profiles WITH container tabs is pretty killer, dont' think Chrome has anything like this.

Kinrany

4 hours ago

Why'd you use profiles and containers together?

throwaway106382

3 hours ago

Profiles for the typical Work/Personal separation with their own bookmarks, extensions, password manager accounts etc……

Then I use containers for isolating sensitive accounts within those profiles (bank, work Google Drive, etc).

I also use temporary containers to make it easier to be logged into the same site with multiple accounts at the same time between tabs - like admin and user accounts for our company’s app - which also make it easier to clear sessions and data.

https://addons.mozilla.org/en-US/firefox/addon/temporary-con...

krick

2 hours ago

So… what's changing? Profiles have been there for decade(s), is it just an alternative UI for folks who were unable to run firefox -p, or is there anything more substantial?

mulakosag

2 hours ago

What a shocker right? I guess everyday normal people do dot use a command prompt much less open a terminal to open a browser profile.

They like to click and icon and create/switch profile. Chrome, edge and many other browsers had this feature for ever. Not having ability to easily switch profiles is only reason I did not switch to Firefox full time even though I quite like the multi containers extension in Firefox for managing bazillion AWS accounts.

codethief

2 hours ago

Came here to ask the same question. Maybe the news is there's now an easy way to theme them?

Yizahi

3 hours ago

New feature blablabla... Hey, Mozilla - how about fixing the multiyear old bug, which has like several dozen tickets in bugzilla alone, about randomly losing all open tabs? What good are profiles to me, if one of most important of the secondary features of a browser is fundamentally broken and unreliable? I'm so pissed at Mozilla for their attitude (nothing new really, after the Ugly Bar update and those comments on reddit). If there was a real third browser on Windows I would have jumped ship, despite running FF since beta, both on PC and mobile. Just last month FF managed to kill all my open tabs a third time this year, and that's after no error, completely normal PC shutdown and boot next day. (ps: I know about scrounger)

celsoazevedo

3 hours ago

Finally. I know that profiles have been supported for a long time, but about:profiles wasn't that user friendly and on macOS, profiles could also mess your dock icon, wouldn't open in the foreground, etc. It wasn't a good experience.

I think the new profiles will cause some confusion (at least initially) because these profiles are not listed on the old about:profiles page and the old profiles are not listed on the new UI.

Still, a good improvement for me. I no longer need to use the dev/nightly channels or 3rd party browsers based on FF just to have different bookmarks/settings/extensions. I'll need a way to add old profiles to the new UI though.

jsrcout

2 hours ago

Firefox profiles have worked really well for me for years. I only have two complaints. (a) I like to configure my tools, and setting prefs via user.js has just never really worked - anything there is ignored. Probably it's just because of my particular setup, but I eventually gave up on it. (b) It would be super nice if profiles could [edit:] share common prefs. I certainly don't expect the developers to make it a feature, and it seems like fixing (a) and using symlinks would do it. But overall, yeah profiles work great.

chrisweekly

2 hours ago

> "if profiles could common prefs"

sorry I couldn't quite parse this

mrb

5 hours ago

What an extremely confusing blog post! I don't understand why it seemingly presents profiles as a new feature? Firefox has had profiles for years. What the heck is new?

I had to click the other link https://support.mozilla.org/en-US/kb/profile-management to understand that this is all about simple UI improvements to make it easier to work with existing profiles.

The blog post is more than confusing, it is misleading. HN should link to the support page instead of the blog post.

hobofan

5 hours ago

100% agree. It feels like Firefox has had an identical announcement of this as a new feature every second major release for the last ~2 years.

They are seriously dropping the ball here in terms of communication and it just makes Firefox seem stale.

bashtoni

5 hours ago

It looks like AI slop to me. "Profiles in Firefox aren’t just a way to clean up your tabs. They’re a way to set boundaries, protect your information and make the internet a little calmer." - classic meaningless comparison.

radley

4 hours ago

If it's buried in about:config, it's not a feature, it's just a dev tool. (FWIW, I read that config settings may reset during updates, so at best it's just a temporary patch.)

It's like saying you have a responsive website, but only if I edit the layout in the DOM.

skeledrew

5 hours ago

For some reason neither my Dark Mode add-on nor the built in reader mode (which also makes pages dark as I prefer) work on that page. Very annoying; will skip reading that to preserve my eyes.

iamcalledrob

6 hours ago

Glad to see improvements here -- switching between profiles has always been a weak spot for Firefox!

throwaway150

5 hours ago

Does this read like AI slop to anyone else?

That whole "Profiles don't/aren't just $THIS; they're also $THAT" construction is classic LLM output. Then you've got the weird confusing inconsistencies like calling profiles a new feature when they aren't and there's also the rule of 3 ("avatars, colours, naming", "set boundaries, protect your information and make the internet a little calmer"). It all feels machine-written. Even the comparison of tidying your tabs to setting boundaries seems meaningless. It's just the sort of empty parallels AI loves to make.

It's a short article but I really had to power through it because with every sentence I kept thinking, this is not written by a human. If it is AI-generated slop, that'd explain why some parts of it doesn't make any sense.

small_scombrus

3 minutes ago

> $THING isn't just $THIS, it's also $THAT!

Is pure marketing speak, which is also what I find a lot of LLM generated text sounds like

gdulli

4 hours ago

An idea we'll have to start getting used to is that people who read enough of the slop might begin to emulate it without necessarily meaning to. The homogeneity will be contagious.

krick

2 hours ago

I still don't quite understand where ChatGPT and its pals learned this. Sure, all these PR copywriters are notoriously bad at writing, but still, I don't think I often met all this crap in many texts before. I mean, if I did, I wouldn't be noticing it now as that ChatGPT style. So why does it write like that? Is it even how Anthropic models write as well (never used them)? Is it some OpenAI RL artifact, or is it something deeper, something about the language itself?

I cannot even always quite formulate, what irks me about its output so much. Except for that "it's not X, it's Y" pattern. For non-English it may be easier, because it really just cannot use idioms properly, it's super irritating. But I wouldn't say it doesn't know English. Yet it somehow always manages to write in uncannily bad style.

ryukoposting

3 hours ago

Profiles rock. When I was WFH I had a work profile and a personal profile. Password manager synced across the two profiles, really slick experience honestly. I do wish you could change sync settings on a per-profile basis though.

aborsy

an hour ago

UX of profiles in Firefox is bad. See how Chrome does it.

celsoazevedo

an hour ago

This is about a new UI, very similar to what Chrome offers.

BrenBarn

2 hours ago

I've used profiles for a long time, but they have some annoyances.

One thing I really want is a comprehensive system for transferring/syncing only certain data between profiles. Profiles contain some data that is specific to, well, a particular browsing profile (like open tabs), but also data that is really more specific to me as a person (like font preferences). And then each extension can have its own settings or data that I may or may not want to transfer. I always have to look up old articles on Mozilla wiki and hope they're still accurate when I want to transfer certain data/settings between profiles while neither nuking everything nor copying everything. It would be great to have a sort of "data browser" that let me pick and choose certain data and then create a new profile from that.

The other disappointing thing to me is how they talk about profiles (and container tabs) as related to different usage patterns like work, home, etc. I mean, yeah, that's cool, but what I really want (certainly from container tabs, sometimes from profiles as well) is site isolation. I don't just want one profile for my work Gmail and another for my personal Gmail. I want one container tab for "everything Google", isolated from the rest, to minimize Google's tracking. But, like I said above, I still want all my personal preferences uniform across these profiles/containers.

skeledrew

5 hours ago

Nice. I've been using Tab Groups Manager, and then Simple Tab Groups for years, but have also at times wished for more control and better separation while preserving ease of use (I really don't want to deal with providing CLI args). Hopefully this bridges the gap well.

uniqueuid

6 hours ago

Profiles have always been great, but it's kind of unfortunate that this feature seems to be locked behind a sign-in (the link in the article describes the UI as being in the profile menu).

I mean, I've been using about:profiles for ages, but it would definitely be nice to have a bit more polish (e.g. every now and again I forget that a newly created profile is automatically promoted to default)

[edit] well seems I have to eat my words - there's a switch in about:config named "browser.profiles.enabled" that toggles a profiles menu item with some UI that apparently has existed for years. Nice!

crtasm

6 hours ago

Nice to know about that. Odd that it doesn't list any of my existing profiles though

uniqueuid

6 hours ago

You're right, it seems both the UI and the old about:profiles page do use the same underlying implementation, but the UI does not pick up any profiles added through the about: page. If you create a new profile from the UI, that will show up in about (after a restart).

miki_oomiri

2 hours ago

It blows my mind.

I can't have profile without having a "Sign In" button in my toolbar. Mozilla… please. How is it possible, to ship a feature and do that…

x0x0

6 hours ago

I enabled this last night and it deleted my existing profile, fwiw.

Both bookmarks that I'd just created and, just to clarify I'm not losing my mind, the full profile because I had to reinstall ublock origin.

pcchristie

2 hours ago

It's annoying these get grouped in the taskbar unlike Chrome profiles. Surely the main use case is to have a "Firefox" and a "Firefox (Work)" pinned separately to the taskbar and have them act as two completely different environments?

xenophonf

3 hours ago

Firefox profiles suck. Their UX is so bad. Containers are better but still have their issues. I use Containerise plus Cookie AutoDelete plus Temporary Containers to give me what is effectively per-tab private browsing. The major downside is that I have to copy containers.json (which enumerates all of the dedicated containers I have defined, e.g., for Facebook), my Containerise rules (which automatically puts certain web sites into specific containers), and my Cookie AutoDelete config (which says which cookies to delete and when) among browsers manually. I wish more things supported Firefox's sync feature. I ended up adding them to my dotfiles, so it isn't too painful, but it definitely isn't grandparent friendly.

celsoazevedo

2 hours ago

> Firefox profiles suck. Their UX is so bad.

That's what these changes aim to fix. You're getting a Chromium-like profile switcher/manager.

> Containers are better

Containers are very good... for container stuff. Profiles allow us to have different bookmarks, settings, extensions, themes, etc. Different tools for different jobs. I use both!