News for hackers. Stuff that matters.
Re:Facebook Container for Firefox by mmcclure on Wednesday October 21, 2020 @01:16PM (#24849919)
I use Firefox multi-account containers[1] extensively, it's honestly the primary reason I use Firefox these days. The big win for me is that I _hate_ having to use the Google account switcher, so I basically set up a container for each Gmail account (work, personal, old email, etc).

The nice bonus feature is you can have certain sites default to containers. I had a paid YouTube account for a while, for example, so having any YouTube link open in my personal account was nice for not getting hit with ads on initial click due to my default Gmail not being the right one.

There's also a plugin[2] that will make any new tab default to whatever the first tab listed is. Really great for if you want to have a whole browser window dedicated to one container.

[1] https://addons.mozilla.org/en-US/firefox/addon/multi-account...

[2] https://addons.mozilla.org/en-US/firefox/addon/sticky-window...

Re:Facebook Container for Firefox by Mandatum on Wednesday October 21, 2020 @04:21PM (#24851703)
Also adding to this - you can set up container-specific proxies with "Container proxy" addon. This is great for when you want to ensure your connection is going over a private network, for instance if you have a regular torrent website (or porn or whatever) - you can configure it to automatically open in a container, like this Facebook addon - but when it opens - it will only connect to the endpoint over a proxy. If you're not connected, it fails.

Works really well with Mullvad which has a SOCKS proxy setup only available when connected.

Great for work connections too, I've setup all work/business websites to auto-open in a "work" container which I've created a local bridge proxy for to ensure my work connections are always over the corporate VPN.

This is also really good if you consult or work with many customers - you can start to build a catalogue of containers with specific settings for those customers.

Container Proxy addon:

https://addons.mozilla.org/en-US/firefox/addon/container-pro...

Re:Facebook Container for Firefox by smichel17 on Wednesday October 21, 2020 @07:14PM (#24853320)
Anyone in the know: what would it take to implement a "container over tor"? I am not currently a tor user, but absolutely would if I could integrate it with my current workflow (using the temporary containers addon).
Re:Facebook Container for Firefox by hannibalhorn on Wednesday October 21, 2020 @07:21PM (#24853377)
tor provides a socks proxy, which you can assign to a container easy enough w/ the container proxy addon.
Re:Facebook Container for Firefox by beardog on Thursday October 22, 2020 @04:45AM (#24856011)
Though you won't get stream isolation this way https://www.whonix.org/wiki/Stream_Isolation
Re:Facebook Container for Firefox by aasasd on Wednesday October 21, 2020 @11:11PM (#24854538)
Does FF send DNS requests via the proxy? Depending on the personal threat model and the ISP, that might matter.
Re:Facebook Container for Firefox by TheFlyingFish on Wednesday October 21, 2020 @11:27PM (#24854609)
FF defaults to DNS-over-HTTPS now, so I would imagine it does, although I can't find solid confirmation.
Re:Facebook Container for Firefox by erinnh on Thursday October 22, 2020 @08:40AM (#24857359)
Only in the US.
Re:Facebook Container for Firefox by Liquid_Fire on Thursday October 22, 2020 @08:56AM (#24857479)
There are checkboxes to control this in the Firefox proxy settings. "Proxy DNS when using SOCKS v5" and "Enable DNS over HTTPS".
Re:Facebook Container for Firefox by computerfriend on Thursday October 22, 2020 @11:40AM (#24859188)
In the proxy options, there's a box to tick for sending DNS through the proxy or not.
Re:Facebook Container for Firefox by smichel17 on Wednesday October 21, 2020 @08:06PM (#24853672)
Thank you, I'll look in to this!
Re:Facebook Container for Firefox by breakingcups on Thursday October 22, 2020 @03:16AM (#24855616)
Be careful doing this though, there's a reason Tor Browser exists and it is because it's very hard to do anonimity over Tor right on a default browser.

Granted, Tor tries to upstream as much as it reasonably can to FF, but there's still large differences in defaults that could give away (some bits of) your identity.

Re:Facebook Container for Firefox by smichel17 on Thursday October 22, 2020 @07:58AM (#24857080)
See this comment first, not mine but might as well be https://news.ycombinator.com/item?id=24853678

It's all baby steps. I don't expect to be fully anonymous this way, just like I know my current setup does not foil more sophisticated tracking.

Re:Facebook Container for Firefox by rsync on Thursday October 22, 2020 @12:02PM (#24859467)
"Anyone in the know: what would it take to implement a "container over tor"? I am not currently a tor user, but absolutely would if I could integrate it with my current workflow (using the temporary containers addon)."

This is my every-six-months wish/rant on this subject ...

What we need is the ability to 'jail' a GUI browser process.

It is too resource intensive to spin up an actual virtual machine to run a browser window/tab. However, a facility like 'jail' (or zones or, perhaps even Docker) that simply chroots a new process with its own network interface, etc., does not have any of that expense.

It really is just a fancy chroot and the expense is limited to the overhead of just the process you're running.

If you could 'jail' a GUI application, you could have a browser window that was not merely its own cookie domain or history domain, but that was on an entirely different network and it's own chroot.

Re:Facebook Container for Firefox by hannibalhorn on Wednesday October 21, 2020 @06:34PM (#24852977)
I use the same setup (mullvad + container proxy) and can't praise it enough. I just keep a mullvad connection open on my router and only route the proxy IPs through it.

Great for all kinds of silly GeoIP restrictions, too - in my part of the world, homedepot.com just spits out "access denied", a foodnetwork.com recipe you find in search results just redirects you to the tudiscovery.com homepage, etc.

Re:Facebook Container for Firefox by bogomipz on Wednesday October 21, 2020 @11:30PM (#24854622)
>"I just keep a mullvad connection open on my router and only route the proxy IPs through it.'

I'm interested in your setup. Do you configure your router to have a point to point tunnel with Mullvad then? I didn't know this was a thing. Do you then just have a separate container proxy for each GeoIP region you want to access?

Re:Facebook Container for Firefox by hannibalhorn on Thursday October 22, 2020 @09:16AM (#24857653)
I have a Unifi USG, which has a third party wireguard addon, though of course OpenWRT could work just fine. You setup a wireguard tunnel normally, but disable the default routing (on a Unifi, set route-allowed-ip false), and then explicitly add a route for 10.124.0.0/16 through the wireguard interface. The mullvad servers page[1] has socks 5 proxy addresses for all of their servers - assign one to a firefox container and you're all set. No reason you couldn't have a container for each geographic region you want.

1. https://mullvad.net/en/servers/

On a USG the config looks like this:

    wireguard wg0 {
        address ***/32
        mtu 1420
        peer *** {
            allowed-ips 0.0.0.0/0
            endpoint ***:51820
        }
        private-key ***
        route-allowed-ips false
        up-command "ip route add 10.64.0.1/32 dev wg0 && ip route add 10.124.0.0/16 dev wg0"
    }
Re:Facebook Container for Firefox by angrais on Thursday October 22, 2020 @08:35PM (#24864922)
I'm curious to learn more why you have gone this route compared with the default settings of a standard router?

I'm uncertain of the benefit for everyday people.

Re:Facebook Container for Firefox by Mandatum on Thursday October 22, 2020 @03:48AM (#24855787)
This'll help you: https://mullvad.net/en/help/dd-wrt-routers-and-mullvad-vpn/

For Geo-IP, unfortunately unless you have some sort of automation to reconfigure the OpenVPN settings on your router - this will only work with 1 configuration. They may be alluding to using the VPN to connect to another country where they're not getting weird as fuck redirects and shit content.

Although just as I wrote that, I'm expecting a dd-wrt/browser addon will probably support this somewhere - or at least as a script on Linux.

Re:Facebook Container for Firefox by kbenson on Thursday October 22, 2020 @03:29AM (#24855691)
Container proxy plus a putty socks tunnel over SSH through a pinhole firewall rules to my work linux system is my preferred poor man's work VPN. One main benefit being that allowing the non-VPN traffic to handle the video meeting works way better.
Re:Facebook Container for Firefox by raverbashing on Thursday October 22, 2020 @05:18AM (#24856193)
I'd even debate if it's really a "poor man's" VPN, I think it's actually a better solution

Traditional VPN solutions seem overengineered and complicated. Wireguard is better though

Re:Facebook Container for Firefox by seszett on Thursday October 22, 2020 @06:12AM (#24856463)
I just discovered Mullvad (just a VPN provider) and for some reason, they don't have "English" in the list of languages available for their site.

So they redirected me to the Dutch version because I'm in a nominally Dutch-speaking region, and I had no option to get it in English. I had to go with half-translated French until I noticed that I could replace the "fr" in the URL with "en", and actually get to an English-language website.

The region-based redirection was annoying enough, and the half-assed translation job was expected, but not even providing an easy way to get back to English is really idiotic.

I still wish I had some kind of system that would automatically use a connection in the right country for geoblocked content. For now I just use SSH proxies to (my own) strategically located servers combined with Firefox Containers and Container Proxies, but it's all manual.

Re:Facebook Container for Firefox by pzmarzly on Thursday October 22, 2020 @08:15AM (#24857183)
Just checked it, and English is 4th option in the language switcher on the bottom of the page.

Also, it seems to be using browser's preferred locale, not the IP region. So, it looks like that changed, too.

Google, on the other hand, is just as bad as you described. Geo-based localisation, lots of clicks to change the language (or ?hl=en, once you learn about it).

Re:Facebook Container for Firefox by seszett on Thursday October 22, 2020 @09:32AM (#24857775)
Looks like you're right, but unfortunately the select is cut for me[0] because my screen is not big enough.

Since the list is not alphabetically ordered (it actually is, but with the English names, not the displayed names) and it shows no scrollbar, it wasn't obvious there would be other countries up there.

As for language, maybe Google itself chose to send me to the Dutch version. Despite all my attempts, I still cannot consistently get Google to use the language I want (apart from manually choosing it by directly visiting Google with the right hl= first, indeed). Right now Google.fr seems to be in English and offering me the three languages of Belgium, for some reason.

[0]https://i.imgur.com/nuAPsxD.png

Re:Facebook Container for Firefox by CartenLoor on Thursday October 22, 2020 @12:08PM (#24859552)
Could you provide some more information about the local bridge proxy? I'm trying to implement something similar but don't know where to start.
Re:Facebook Container for Firefox by s__s on Thursday October 22, 2020 @03:13PM (#24862126)
Mozilla needs to work harder on the permission system for addons.

One of the permissions you have to grant to the container proxy add on is:

“Access your data for all websites”

That’s not acceptable.

Re:Facebook Container for Firefox by BHSPitMonkey on Thursday October 22, 2020 @03:18PM (#24862209)
How would you propose fixing it? Firefox has an active bug tracker to discuss these kinds of things.
Re:Facebook Container for Firefox by Fats on Wednesday October 21, 2020 @01:42PM (#24850208)
What I've been doing was to set up a browser profile (local) for each main context. If I have a set of work accounts (google, github, etc.), I have a 'work' profile for it. This isolates all cookies related to 'work' at once, as well as bookmarks, saved tabs, extensions, and settings. It's a total context switcher.
Re:Facebook Container for Firefox by rozab on Wednesday October 21, 2020 @03:36PM (#24851233)
Profiles definitely have the basic functionality, but I like to keep all my extensions the same across my containers, and it's also easy to set up rules such that a certain site will always open in a certain container. You don't have to think about it at all.
Re:Facebook Container for Firefox by drdaeman on Wednesday October 21, 2020 @11:29PM (#24854617)
I want my extensions to share the base configuration but have some different settings in different contexts.

Like, allow some tracking & advertising for "shopping" container, but block it otherwise. I don't mind having a special self-curated image where my in-scope browsing is tracked and analyzed. Now, I just have a separate browser (Chrome) for this - because it's more straightforward and less error-prone.

Or a sandbox development & local resource management profile where nothing but localhost and LAN addresses are allowed. And then block such access for any other profile - for security reasons.

Or allow, let's say, Grammarly extension on a few selected websites (like HN), where all I write is public and I would benefit from machines aiding my writing without any privacy concerts, but don't give it any chance to see my private correspondence.

Unfortunately, that's not possible with containers, and profiles are quite cumbersome.

Re:Facebook Container for Firefox by blibble on Wednesday October 21, 2020 @05:57PM (#24852678)
excluding extensions is the exact reason I use profiles (I don't want any with access to my banking)

I use containers liberally also

Re:Facebook Container for Firefox by Farow on Wednesday October 21, 2020 @07:07PM (#24853260)
You can open a private window when doing your banking, extensions aren't allowed there by default.
Re:Facebook Container for Firefox by herewulf on Thursday October 22, 2020 @11:03PM (#24865655)
Good idea but this doesn't save history which can be useful sometimes.
Re:Facebook Container for Firefox by aggronn on Wednesday October 21, 2020 @01:59PM (#24850373)
I'm also doing this in chrome. I have about 5 different profiles, aliased to things like `chrome-work`, `chrome-personal`, `chrome-dev', etc. I would love to use FF, but iirc FF doesn't provide something like `firefox --profile=someIdentifier` that opens a new window in my desired profile.

edit: Apparently this is bad info. I'll have to give it a try again.

Re:Facebook Container for Firefox by satya71 on Wednesday October 21, 2020 @02:05PM (#24850426)
It does. `firefox -no-remote -P <profile>`
Re:Facebook Container for Firefox by tzs on Wednesday October 21, 2020 @02:41PM (#24850747)
There's also a firefox-bin. Anyone know what the difference between firefox and firefox-bin is nowadays?

I believe that in the far past firefox-bin was the firefox binary, and firefox was a shell script that would do things like notice you already have a firefox-bin instance open and signal it to open a new window rather than launching a new firefox-bin instance.

But nowadays, firefox and firefox-bin seem almost the same. On the current release version on Mac, for example, both are binaries, with firefox-bin 40320 bytes and firefox just 16 bytes bigger.

Info.plist in /Applications/Firefox.app/Contents gives firefox is the executable to run. I'm not sure what role firefox-bin has now, if any.

Grabbing the source and building it myself results in firefox and firefox-bin matching.

Re:Facebook Container for Firefox by daleharvey on Wednesday October 21, 2020 @03:35PM (#24851225)
https://bugzilla.mozilla.org/show_bug.cgi?id=658850 has some background, it seems at least sometimes they are identical
Re:Facebook Container for Firefox by codethief on Wednesday October 21, 2020 @02:19PM (#24850548)
I used to always include `--no-remote` here but it seems `firefox -P <profile>` now works, too, even when another Firefox instance is already running. Is anyone experiencing the same?
Re:Facebook Container for Firefox by quesera on Wednesday October 21, 2020 @08:44PM (#24853872)
When I last tested, it varied by platform.

Linux was happy to open a new instance without the `--new-instance` option (which is implied by `--no-remote`), but macOS required it.

Re:Facebook Container for Firefox by utucuro on Thursday October 22, 2020 @04:10AM (#24855875)
If you're already in FF, consider using about:profiles as well, the old profile manager GUI was integrated into the browser itself a while ago.
Re:Facebook Container for Firefox by WorldMaker on Thursday October 22, 2020 @01:09PM (#24860360)
Or a shortcut with `firefox --no-remote -ProfileManager` to always launch the profile dialog on bootup just like it is 90s Netscape all over again.
Re:Facebook Container for Firefox by codethief on Wednesday October 21, 2020 @02:16PM (#24850529)
`firefox -P <profile name>` works like a charm for me?
Re:Facebook Container for Firefox by ww520 on Wednesday October 21, 2020 @05:36PM (#24852484)
Tooting my own horn :). Session Boss [1] saves the container information as part of the session and can restore the tabs in their respective containers. I use it to maintain multiple Gmail accounts and other email accounts in different containers.

[1] https://addons.mozilla.org/en-US/firefox/addon/session-boss/

Re:Facebook Container for Firefox by baumandm on Friday October 30, 2020 @10:37AM (#24942656)
I'm a bit late to this thread, but thanks for making & sharing this extension. It looks amazing!
Re:Facebook Container for Firefox by AnonC on Thursday October 22, 2020 @01:14PM (#24860411)
The add-on page for this says it was last updated in June 2019. Just wanted to check if it's still compatible and has no issues with all the changes in Firefox for more than a year now.
Re:Facebook Container for Firefox by ww520 on Thursday October 22, 2020 @02:55PM (#24861891)
Still works fine. I have a large pending change which is risky and I want to do more testing before releasing, but got busy with other stuff and no update has been pushed out for a while.
Re:Facebook Container for Firefox by SturgeonsLaw on Thursday October 22, 2020 @06:32AM (#24856585)
That looks like a useful extension, just installed it. Good for those times I want to Undo Close Tab for something 10 tabs ago
Re:Facebook Container for Firefox by artificial on Wednesday October 21, 2020 @07:49PM (#24853577)
Sweet, I'll give it a go. I'm a huge fan of being able to export sessions, save them, query and suspend tabs.
Re:Facebook Container for Firefox by Timpy on Wednesday October 21, 2020 @02:29PM (#24850655)
Along with the Facebook Container I use multi-account containers to keep a Google, Microsoft, and Amazon container as well. I included all of their children companies in the parent containers (like GitHub in Microsoft, YouTube in Google). It's sobering seeing how much of the internet shows up in one of these four containers.
Re:Facebook Container for Firefox by neltnerb on Wednesday October 21, 2020 @04:17PM (#24851631)
I use multi-account containers and temporary containers so that all my new tabs are isolated.

Is there any reason to also use facebook container if you already have multi-account containers?

Re:Facebook Container for Firefox by RMPR on Wednesday October 21, 2020 @05:10PM (#24852219)
> I use multi-account containers and temporary containers so that all my new tabs are isolated

Worth mentioning that with the addon cookie auto-delete, you can more or less emulate temporary containers.

Re:Facebook Container for Firefox by smichel17 on Wednesday October 21, 2020 @07:33PM (#24853457)
Temporary containers has a plethora of settings for when to open a new container. For example, I have a rule enabled that will open links in a new temporary container when they leave the current one. That's a terrible explanation, so let me give an example to make it clear:

- I have a GitHub container

- github.com and gist.github.com are set to always open in the GitHub container

- Say I am currently browsing github.com in the GitHub container.

- If I click a link to a domain other than [gist.]github.com, instead of navigating my current tab to that url, the url will open in a new tab & new temporary container

This is more powerful than simply persisting cookies from github.com -- I'm keeping GitHub's cookies, but only in the github container. It's almost like first party isolation, but a little weaker (unless you enable the setting where any link to a different domain will open in a new container), and I have the ability to group sites that would break with 1st party isolation by opening them in the same container.

Re:Facebook Container for Firefox by neltnerb on Wednesday October 21, 2020 @08:07PM (#24853678)
I agree, your description is more why I like it -- the only websites that get to save any state are the ones I pick to open in specific named containers and which I also specifically granted permissions to with uMatrix (RIP).

Everything else opens links in a new container with the hope to make it as close as possible to looking like a different person clicked that link. I know it won't work that well since the IP doesn't change nor the user-agent, but at least it helps with the most lazy tracking.

Re:Facebook Container for Firefox by smichel17 on Wednesday October 21, 2020 @10:20PM (#24854309)
I share the same goals; thanks for the succinct description.

Discussion upthread made me interested to see whether I can route temporary containers through tor, to make this protection stronger — see https://news.ycombinator.com/item?id=24853320

It's not super high on my list of priorities though, probably won't get to it for a month or two.

Re:Facebook Container for Firefox by neltnerb on Thursday October 22, 2020 @12:20AM (#24854840)
Oh, that'd be very neat if it made separate container tabs look like different tor sessions. Very clever! I suppose there's little short of that which would stand a real chance of working...
Re:Facebook Container for Firefox by shawnb576 on Wednesday October 21, 2020 @03:48PM (#24851341)
Agree that containers are Firefox #1 killer feature and incredibly useful.
Re:Facebook Container for Firefox by stjohnswarts on Wednesday October 21, 2020 @11:12PM (#24854550)
I used to have 4 or 5 profiles for firefox for various accounts and situations and containers let me leave all that mess behind. It's pretty awesome and I wish more people knew about it. It's one of the things I bring up to privacy oriented and people who need a lot of different logins.
Re:Facebook Container for Firefox by yeswecatan on Thursday October 22, 2020 @01:50AM (#24855275)
Is there a way to have multiple profiles open in separate windows but inly a single instance of Firefox, similar to Chrome?
Re:Facebook Container for Firefox by stjohnswarts on Thursday October 22, 2020 @09:11PM (#24865124)
I think you can do it from command line. Set up a few profiles (2 to start with/test) and run them from command line. https://chromium.googlesource.com/chromium/src.git/+/62.0.32...
Re:Facebook Container for Firefox by jethro_tell on Wednesday October 21, 2020 @10:30PM (#24854352)
I log into roughly 20 AWS accounts/day. Container tabs make that work. I can compare things side by side or just work on two tasks at once.
Re:Facebook Container for Firefox by turdnagel on Wednesday October 21, 2020 @10:31PM (#24854358)
Holy moly, why 20 accounts?
Re:Facebook Container for Firefox by jethro_tell on Thursday October 22, 2020 @12:30AM (#24854891)
Standard practice in larger scale.

I run big fleets, 100s of hosts 1000s of containers in most AWS regions. Most of the control plane is automated, but when that breaks, or there are issues in the data plane, I might log into read logs, look at metrics, force scaling actions, or just general investigation tasks.

I also use different accounts for permissions boundaries. Data shared between multiple teams might go in one account. The apps can access the data but maybe the interns can only access the app account while the SR. Eng(s) + current oncall have full read only access to the data for investigation. A second RW-Data oncall might have access to the DB account in each region. Ever data storage account also has a limited access cross account Data replication/backup account.

+ I help people out. 'Can you look at this? . . .'

In the end, there are account specific errors that can be caused in your infra, IAM rolls, keys, throttling, malicious access that are easily prevented with least access in per account buckets. So I end up with multiple accounts in each region.

Re:Facebook Container for Firefox by abrookewood on Wednesday October 21, 2020 @11:36PM (#24854644)
It's not that unusual to use separate AWS accounts as blast-barriers. I.e. they contain the damage that might occur due to a leak etc. I typically use 2 (prod & non-prod) for each major product/offering, plus a centralised one to manage policies, billing etc for all the sub accounts. They add up pretty quickly.
Re:Facebook Container for Firefox by jethro_tell on Thursday October 22, 2020 @12:38AM (#24854929)
I use an account for $service-$stage-$region-<$function> then I run most services in every available region

so:

main-service_prod_us-east-1_dataStore

main-service_prod_us-east-1

main-service_test_us-east-1_dataStore

main-service_test_us-east-1

main-service_beta_us-east-1_dataStore

main-service_beta_us-east-1

* regions

Adds up pretty quickly.

Re:Facebook Container for Firefox by LilBytes on Wednesday October 21, 2020 @11:42PM (#24854659)
My employer has accounts in the hundreds...

Similar to OP you're replying to, I use Firefox Containers to open separate accounts to open independent windows from my Identity Provider when I need to be in more than one account at a time.

Re:Facebook Container for Firefox by dheera on Wednesday October 21, 2020 @11:44PM (#24854674)
AWS credits? You can get a bunch of free credits for each account, and then build an abstraction around boto3 to make 20 accounts look like 1 account to you.
Re:Facebook Container for Firefox by jethro_tell on Thursday October 22, 2020 @12:33AM (#24854899)
meh, compute cost almost always costs less than dev time. I use multiple accounts for separation of duties, cost, access, and blast radius. Most services I run blow through the free tier in minutes.

I do have scripts that spin up accounts as needed and I just have a bucket for 'free Tier account access ending' emails.

Re:Facebook Container for Firefox by dngray on Wednesday October 21, 2020 @08:31PM (#24853805)
I really like "Temporary Containers" https://addons.mozilla.org/firefox/addon/temporary-container... which is a really useful privacy-enhancing usage of the containers API.

https://medium.com/@stoically/enhance-your-privacy-in-firefo...

Re:Facebook Container for Firefox by lucasverra on Thursday October 22, 2020 @04:02AM (#24855844)
isn't this the same as a private tab ?
Re:Facebook Container for Firefox by y7 on Thursday October 22, 2020 @05:33AM (#24856271)
All tabs opened in private windows share the same "container", which gets cleared once you close the last private tab. With temporary containers, all your tabs are in independent containers.
Re:Facebook Container for Firefox by lucasverra on Tuesday October 27, 2020 @02:21PM (#24910232)
good to know thanks
Re:Facebook Container for Firefox by hawski on Thursday October 22, 2020 @04:58AM (#24856079)
Private tab? Do you mean private window? Or is there some other feature/extension?

The temporary containers extension is creating a temporary container with each newly opened tab. It uses same container for tabs opened from existing tabs.

Re:Facebook Container for Firefox by jmiskovic on Thursday October 22, 2020 @03:01AM (#24855548)
I just recently discovered a tip that finally made Firefox multiple windows usable. When you want to restart the browser and save tabs across all windows, you use Quit command from menu (or Ctrl+Q) and not the window X button (Alt+F4).
Re:Facebook Container for Firefox by kbenson on Thursday October 22, 2020 @03:32AM (#24855711)
Ctrl-shift-n will reopen a closed window (with all the tabs it had) just like ctrl-shift-n will reopen a closed tab. Try it a few times after closing multiple firefox windows with multiple tabs each if they don't come up automatically on start.
Re:Facebook Container for Firefox by ComodoHacker on Thursday October 22, 2020 @03:45AM (#24855777)
You mean "ctrl-shift-T will reopen a closed tab".
Re:Facebook Container for Firefox by kbenson on Thursday October 22, 2020 @01:17PM (#24860449)
Yes, my mistake. That's pretty obvious in context what I meant to someone that already knew it, but that doesn't help those that didn't know about that feature, so thanks. :)
Re:Facebook Container for Firefox by npteljes on Wednesday October 21, 2020 @04:50PM (#24852037)
I also love Temporary Containers, so each of my tabs can be a fresh sheet. Also cookies and much else gets purged after I close them.
Re:Facebook Container for Firefox by gaff33 on Thursday October 22, 2020 @04:53AM (#24856052)
I've been wondering if such an extension exists! Thanks for telling me about it.
Re:Facebook Container for Firefox by moritonal on Wednesday October 21, 2020 @01:28PM (#24850062)
I use it to split my work and my personal GitHub accounts!
Re:Facebook Container for Firefox by leecb on Wednesday October 21, 2020 @04:02PM (#24851481)
> GitHub recommends using only one user account to manage both personal and professional repositories.

https://github.community/t/using-one-account-for-all-your-pr...

Re:Facebook Container for Firefox by Drdrdrq on Wednesday October 21, 2020 @04:49PM (#24852028)
Of course they do. That doesn't make it a good idea though.
Re:Facebook Container for Firefox by matsemann on Wednesday October 21, 2020 @05:44PM (#24852555)
Where I'm contracting now didn't want my account added to their org because it's not a profile picture of me. As the public facing stuff of the account is my personal stuff, I don't want someone else to tell me how it should be. So a new account for this customer it is..
Re:Facebook Container for Firefox by endgame on Wednesday October 21, 2020 @09:10PM (#24853986)
GitHub wants a lot of silly things. I want a lot of silly things. Doesn't mean we all get what we want.
Re:Facebook Container for Firefox by moritonal on Wednesday October 21, 2020 @06:56PM (#24853171)
We actually discussed this for quite a while at work when I pushed us to start contributing to open-source. Mostly it came down to the fact that TfL wished me to keep my work-life and personal-life separate to keep things simple. Reading that back, it doesn't sound so crazy.
Re:Facebook Container for Firefox by ciriarte on Wednesday October 21, 2020 @06:42PM (#24853036)
I wish they didn’t do that. Or preferably, I wish they had native “containers” for work and personal repos.

Explore is one of my favorite features and now it’s crowded with work related suggestions. It makes it harder to separate the personal/professional persona and interests. This problem also manifests in notifications. I want a clear separation so I can focus on my personal life after work.

I’ve thought many times about creating a separate account.

Re:Facebook Container for Firefox by leipert on Wednesday October 21, 2020 @05:55PM (#24852667)
Be careful. If you ever write a commit for an open source project a disgruntled employer could become ideas, depending on your contract.
Re:Facebook Container for Firefox by jacksonlango on Wednesday October 21, 2020 @02:07PM (#24850446)
Do you use windows? I found that having multiple GitHub account is infuriating on windows because it forces you to go into an obscure security manager to delete a record in order to switch which account your using. Never found a way around it.
Re:Facebook Container for Firefox by timvdalen on Wednesday October 21, 2020 @02:20PM (#24850565)
I had never heard of this so I just tried to reproduce this - I have no trouble logging into two separate GitHub accounts in different Chrome profiles. What makes Firefox profiles different?
Re:Facebook Container for Firefox by worble on Wednesday October 21, 2020 @05:52PM (#24852644)
I think he means when using git from the command line. Trying to push to your repo will trigger a github sign in process, which will then save the credentials to Windows Credential Manager. Git will then ALWAYS use those from that point on credentials unless you go into the manager and delete them, which is a massive pain if you use multiple github accounts.
Re:Facebook Container for Firefox by KallDrexx on Wednesday October 21, 2020 @03:47PM (#24851330)
I think he's talking about the windows credential manager for HTTPS authorization for cloning/pushing.
Re:Facebook Container for Firefox by timvdalen on Wednesday October 21, 2020 @04:42PM (#24851960)
Aha! I've always just used SSH authorization with GitHub.
Re:Facebook Container for Firefox by jacksonlango on Wednesday October 21, 2020 @10:27PM (#24854338)
Oh, I'll give that a try, thanks!
Re:Facebook Container for Firefox by remram on Wednesday October 21, 2020 @02:39PM (#24850729)
Damn I also hate the Google accounts mayhem. I will look into those containers.

Right now I manually type ?authuser=1 into my URLs to have Google Docs open in the right account, but this breaks when I restart the browser and the page reloads with the wrong account... Why Google removes this parameter from URLs after loading is beyond me.

Re:Facebook Container for Firefox by dirtnugget on Wednesday October 21, 2020 @03:31PM (#24851185)
It feels like multi-user management with google is a feature which was not really considered from the start and never become important enough to refactor the whole thing.
Re:Facebook Container for Firefox by basch on Thursday October 22, 2020 @11:46AM (#24859283)
Do they need to refactor much though? I would they could fix it in Chrome, and accomplish basically the same thing.
Re:Facebook Container for Firefox by dirtnugget on Thursday October 22, 2020 @01:33PM (#24860655)
I have no idea how the product is structured, but I do know that many other services have a similar issue.

Heck, we’re using outlook at one of my customers and I can’t even open a second tab in 2020. It will just block the UI telling me there is another tab open.

Re:Facebook Container for Firefox by lern_too_spel on Wednesday October 21, 2020 @02:53PM (#24850855)
The worst thing about the Google account switcher is logging into some third party sites sometimes just uses the first logged in account instead of showing the account switcher, so I can't log into the correct account without logging out of all the Google accounts.
Re:Facebook Container for Firefox by typicalbender on Wednesday October 21, 2020 @01:55PM (#24850330)
Is the Firefox implementation different from Chrome? I don't think Chrome allows you to default links to specific profiles but I have used this feature in Chrome for a while to separate work and personal profiles to sandbox Chrome instances.
Re:Facebook Container for Firefox by staz on Wednesday October 21, 2020 @01:57PM (#24850354)
afaik profiles in chrome work for the whole instance (like in firefox) but Container work on a per tab basis
Re:Facebook Container for Firefox by typicalbender on Wednesday October 21, 2020 @02:11PM (#24850486)
Oh I see interesting. That's correct in Chrome you get an entirely separate instance of Chrome with the new profile. Thanks!
Re:Facebook Container for Firefox by mcny on Wednesday October 21, 2020 @02:18PM (#24850542)
and to add to mmcclure's point

I do all my shopping in the shopping container. I have the deals website I frequent set to the shopping container so if I open slickdeals.net in any tab, I get to the shopping container.

One quality of life change I encourage is go to manage containers and select "Select a container for each new tab". Then you can pretend the firefox tab without a container even exists (caveat: does not work with ctrl + t shortcut for new tab)

> The nice bonus feature is you can have certain sites default to containers. I had a paid YouTube account for a while, for example, so having any YouTube link open in my personal account was nice for not getting hit with ads on initial click due to my default Gmail not being the right one.

Re:Facebook Container for Firefox by npteljes on Wednesday October 21, 2020 @04:47PM (#24852010)
That's exactly right. And Firefox has that profile functionality too.
Re:Facebook Container for Firefox by phjesusthatguy3 on Wednesday October 21, 2020 @02:22PM (#24850585)
I use Chrome on Windows 10 at work because we're a gsuite shop and that's just what we do (I don't do personal things on company resources). I use Firefox on Debian everywhere else because Fuck Google.
Re:Facebook Container for Firefox by neycoda on Wednesday October 21, 2020 @05:23PM (#24852343)
Why do you hate the Google account switched for Gmail? It keeps all of my Gmail-attached sites isolated in Chrome and is easy to use on desktop (non-existent on Android Chrome unfortunately).
Re:Facebook Container for Firefox by dheera on Wednesday October 21, 2020 @08:12PM (#24853703)
I tried it but it doesn't seem to work. I clicked a new "Work" container, then went to mail.google.com, and it instantly took me out of the container.

And then when I click back to the work container and try to access mail.google.com I get:

"400. That’s an error.

The server cannot process the request because it is malformed. It should not be retried. That’s all we know."

Bug? It seems like a really messy UI. Why can't they make Multi-Account Containers work just like Facebook Container? Or have make 1 window == 1 container?

Re:Facebook Container for Firefox by mattmanser on Wednesday October 21, 2020 @08:14PM (#24853715)
You can actually have different profiles for Chrome which achieve exactly the same thing.
Re:Facebook Container for Firefox by daveFNbuck on Wednesday October 21, 2020 @08:16PM (#24853722)
Can you have dozens of different profiles open at the same time in different tabs of the same window?
Re:Facebook Container for Firefox by blackearl on Wednesday October 21, 2020 @08:30PM (#24853803)
Yes, I use it at home but also a lot at work. Opening personal account and admin accounts in a bunch of different tabs for a bunch of different sites. Makes it super easy, no need to log in and out throughout the day. I have users that also will have our O365/Okta accounts as well as client O365/Okta accounts. Containers make it a cinch to keep everything separate and logged in at the same time.
Re:Facebook Container for Firefox by daveFNbuck on Thursday October 22, 2020 @12:07PM (#24859538)
I was asking about Chrome profiles, not Firefox containers. I use dozens of Firefox containers already, and it's my understanding that Chrome profiles aren't a good substitute because you can only use one at a time.
Re:Facebook Container for Firefox by dheera on Wednesday October 21, 2020 @11:43PM (#24854669)
It seems that one could also run multiple instances of Chrome or Chromium inside docker containers with X11 forwarding.
Re:Facebook Container for Firefox by mattmanser on Friday October 23, 2020 @12:29PM (#24871183)
No, though I prefer different windows as then you can have different bookmark bars for each context.
Re:Facebook Container for Firefox by nunez on Wednesday October 21, 2020 @02:40PM (#24850738)
Multi-Account Containers with Containerize is an unbeatable combo. Until Chrome gets something like this (I doubt it), I'm never leaving Firefox because of it.
Re:Facebook Container for Firefox by jedberg on Wednesday October 21, 2020 @02:48PM (#24850814)
What does Containerize gain you over Multi-account containers? Is the pattern matching more robust?
Re:Facebook Container for Firefox by mook on Wednesday October 21, 2020 @03:28PM (#24851164)
(I also use Containerise)

In my experience that had better support for per-eTLD temporary containers, so that each site can have its own, and the data can be discarded relatively soon. I also have more permanent containers for things that I want to be able to persist (e.g. work uses SSO so I need to link multiple sites together to log in).

When I used it I found the management in Multi-Account Containers to be onerous (I don't believe it could do automatic containers based on eTLD).

Re:Facebook Container for Firefox by Mandatum on Wednesday October 21, 2020 @04:28PM (#24851787)
Oh wow, okay this makes things a little easier. I've always struggled with logging in as the SSO-flow has domains that I haven't added to the "Always open in X tab". Hopefully the functionality gets incorporated into the MAC addon eventually!

.. I say hopefully, man I feel guilty getting so much use out of these addons when I could be actively contributing. Fuck it, donating.. https://donate.mozilla.org/en-US/

Re:Facebook Container for Firefox by utucuro on Thursday October 22, 2020 @05:00AM (#24856090)
This is going to take care of my biggest gripe with Multi-Account Containers; it leaks cookies to the default container if you open the site management list because it looks up favicons each time. I just tested Containerise and multi-container cookie jars, it does not leak cookies with this. Finally, painless container management!
Re:Facebook Container for Firefox by mey on Wednesday October 21, 2020 @03:04PM (#24850947)
Re:Facebook Container for Firefox by sleavey on Wednesday October 21, 2020 @02:39PM (#24850732)
Does this work with Firefox Sync? I'd love to have different bookmarks/cookies/accounts/etc. for work and home but use the same sync account - sometimes I work from home and want to use my work profile, but also don't want my home bookmarks showing up when I share my screen at work.
Re:Facebook Container for Firefox by rustyminnow on Wednesday October 21, 2020 @02:43PM (#24850767)
Containers won't give you two sets of bookmarks, but if you go to about:profiles, you can set up two accounts for separate bookmarks.
Re:Facebook Container for Firefox by sleavey on Wednesday October 21, 2020 @02:45PM (#24850781)
Physical accounts in different directories inside ~/.mozilla/firefox/? Those don't get synced to the same account as far as I know.
Re:Facebook Container for Firefox by nunez on Wednesday October 21, 2020 @02:41PM (#24850745)
MAC works with Firefox Sync, yes.
Re:Facebook Container for Firefox by utucuro on Thursday October 22, 2020 @06:06AM (#24856432)
Only partially; Containers get synced, but site to container assignments do not get synced.
Re:Facebook Container for Firefox by neogodless on Wednesday October 21, 2020 @07:09PM (#24853277)
I'm confused. Containers work by URL. How do you use a different container per Google account?
Re:Facebook Container for Firefox by tialaramex on Wednesday October 21, 2020 @07:39PM (#24853493)
The Facebook Container extension is special, it does a bunch of work to put all of Facebook and only Facebook inside the Facebook Container. Bits of Facebook trying to peak through outside Facebook (e.g. tracking pixels) are elided entirely. Which is exactly what I want. But ordinarily that's not the behaviour you get from a Firefox container.

e.g. I have that Facebook Container, and I also have a Slack container I just put together in the usual way by opening my Slack session (it's for the main social group I hang out with, during the pandemic) inside a Container with a pink theme and icon.

Suppose three friends send me a funny Youtube video of kittens, one sends it on Slack, one on Facebook, one literally sends me a postcard with the URL on it.

In Facebook, it's inside the Facebook container. Since the Facebook Container has no idea who I am, Youtube presents adverts and of course there's no way to add the video to my "Fun kitten videos" list. But if I tell Youtube to open this now the tab is not Facebook, a no-referrer link opens with the URL and now in my default context which has Youtube Premium, so there are no adverts and I can add this to my lists. As far as Facebook is concerned I apparently just left. Unless Google tells them I watched that video they are none the wiser.

Slack is inside the Slack container. So again, no Youtube account, adverts. But if I open the Youtube page that's still inside the Slack container, so still no Youtube account. I need to explicitly get the URL and paste it into a not Slack tab to get my default context.

The link from the postcard obviously I get to choose which context to type it into the URL bar, although maybe the UX of typing random Youtube URLs in isn't great.

Re:Facebook Container for Firefox by autoexec on Wednesday October 21, 2020 @08:00PM (#24853638)
> In Facebook, it's inside the Facebook container. Since the Facebook Container has no idea who I am,

wouldn't they know exactly who you are with every request sent to any of their servers and any facebook page you load either by your facebook account, IP address, or by browser fingerprinting.

Re:Facebook Container for Firefox by tialaramex on Wednesday October 21, 2020 @08:22PM (#24853750)
I mean, sure they can be entirely confident that I'm the Facebook user who signed up for that account, and so in that sense they know exactly who I am.

But in another very real sense they've got no idea who that is. It would suit them very well to be able to reliably tie it to other information (hence all the tracking pixels and so on) but the Container prevents that.

I mean, one of my Facebook friends is named say "Norman Le Plum". I'm very confident that isn't what it says on his birth certificate, and indeed when his friend request arrived I actually ignored it until I found someone out of band to tell me who "Norman" was, but in a sense Facebook know exactly who Norman is, he's a disembodied red skull who is still really into skateboarding and Steamed Hams.

What use that is,isn't clear, and presumably one day advertisers might conclude the answer is "No use whatsoever" and Facebook will go out of business. Meanwhile I read funny Steamed Hams variants, people complain about their jobs, and while I'd rather it didn't exist at all, if it must exist at least it's trapped in a little box where it can't taint everything else.

Now Google probably knows way too much about me, but that's quite a different problem.

Re:Facebook Container for Firefox by autoexec on Wednesday October 21, 2020 @08:39PM (#24853850)
I wouldn't count on a fake name being any kind of problem for facebook assuming they're actively using the profile. Not providing them any data at all won't spare you, but if you're using the account they can easily analyze photos and comments (including those on other people's profiles), use facial recognition, use friend/activity patterns, match IP addresses/browsers (including any instances where the same IP address/browser was used to sign into non-facebook services found in records purchased by facebook from data brokers), and if he ever uses his phone or chrome to look at facebook there's a handy unique ID sent to facebook as well which can be matched with countless other recorded activities.

Facebook devotes a huge amount of time and money to collecting data and using it to associate people to a real identity to the extent that even people who never signed up for an account at all have hidden profiles created for them by facebook which contain the intimate details of their life including what they buy at the grocery store.

As far as I can tell, a container won't protect your identity but it will limit the amount of information they have on your browsing history (unless your ISP decides to sell them that information or they obtain some of it from a 3rd party data broker)

Re:Facebook Container for Firefox by hnick on Wednesday October 21, 2020 @10:12PM (#24854271)
Older accounts may have fake names but newer ones require identification documents, even selfie videos to prove you are a human. It wouldn't surprise me if they start combing through older accounts eventually.
Re:Facebook Container for Firefox by neogodless on Wednesday October 21, 2020 @08:39PM (#24853847)
Ok so my point is that you specifically don't put any Google sites into "a" container but rather let them fall where there are, and if you have a Work container and open something Google, you only ever log into the Work-related Google account?
Re:Facebook Container for Firefox by tialaramex on Wednesday October 21, 2020 @10:09PM (#24854254)
For work stuff my habit for maybe a decade or more has been to have work buy me hardware and the work hardware does work stuff, so this conflict never arises. The closest is maybe a previous employer paid me a retainer and obviously they didn't buy me a special laptop just for like one conference call a year on retainer, so I did that from my PC.

But yes, in a Foo container, all the various Google things (Docs, GMail, their Cloud offering, Youtube...) are either not logged in at all or they're logged in from some Foo context.

Re:Facebook Container for Firefox by discordance on Wednesday October 21, 2020 @07:19PM (#24853356)
Firefox containers isolate all cookies, site associated credentials and cached content
Re:Facebook Container for Firefox by neogodless on Wednesday October 21, 2020 @07:24PM (#24853394)
Right I guess I mean you can't isolate all Google sites to one container but also split your Google accounts across multiple containers.
Re:Facebook Container for Firefox by KingFelix on Wednesday October 21, 2020 @11:08PM (#24854526)
This is great, I have been using firefox forever never knew this. Thanks for posting!
Re:Facebook Container for Firefox by mackrevinack on Wednesday October 21, 2020 @01:41PM (#24850197)
same here! its the main thing stopping me from switching back to vivaldi

thanks for the sticky windows tip

Re:Facebook Container for Firefox by rattray on Wednesday October 21, 2020 @04:50PM (#24852038)
Would you be willing to share your config?

Last I checked, I'd have to enumerate every Google domain and subdomain, which just seemed like too much work. But if others have already done this, itd be easy to just use theirs.

Re:Facebook Container for Firefox by smusamashah on Thursday October 22, 2020 @11:00AM (#24858722)
Do multi account containers work with SSBs (site specific browsers / chrome like apps for specific websites)?
Re:Facebook Container for Firefox by kmundnic on Wednesday October 21, 2020 @02:22PM (#24850586)
How do you create different containers for different Gmail accounts, since the beginning of the url will be the same?
Re:Facebook Container for Firefox by im3w1l on Wednesday October 21, 2020 @02:33PM (#24850684)
By not associating the domain with the container, and instead juggling it manually.
Re:Facebook Container for Firefox by plat12 on Wednesday October 21, 2020 @11:15PM (#24854566)
I use private windows in Safari, where each tab automatically behaves like its own container.
Re:Facebook Container for Firefox by nsomaru on Wednesday October 21, 2020 @11:21PM (#24854589)
It’s not the same. All my uMatrix anc cookie auto delete rules are container specific. Private windows are like very simple containers that destroy themselves once closed.

AFAICT private Firefox windows are also part of the same container so you don’t get true separation (can’t open multiple Firefox private windows and log into different google accounts — does that work in Safari?)

Re:Facebook Container for Firefox by jtbayly on Wednesday October 21, 2020 @11:28PM (#24854613)
Yes it works in Safari private tabs. I do that sort of thing regularly.
Re:Facebook Container for Firefox by livscholes on Wednesday October 21, 2020 @06:48PM (#24853099)
Didn't know you could do this with Firefox. Thanks for the tip! Curious — have you ever heard of Shift (tryshift.com)? It pretty much does the same thing, but with everything (Gmail, Facebook, YouTube, WhatsApp, etc.). I use it at work so that I don't have to sign in and out of all my Google accounts. It's pretty unreal.
Re:Facebook Container for Firefox by pseudalopex on Thursday October 22, 2020 @03:08AM (#24855573)
Welcome to HN. Is this you?[1] You should disclose your job is promoting the company you mentioned if it is. I hope it isn't or you just forgot. Astroturfing erodes trust between people and makes the world worse.

[1] https://blog.hubspot.com/marketing/author/olivia-scholes

Re:Facebook Container for Firefox by lucasverra on Thursday October 22, 2020 @04:07AM (#24855861)
Good catch !
Re:Facebook Container for Firefox by tomrod on Wednesday October 21, 2020 @05:22PM (#24852331)
I didn't know about the default containers. Thanks, that's great to know!
Re:Facebook Container for Firefox by Nightshaxx on Wednesday October 21, 2020 @02:17PM (#24850537)
That second extension is a great idea! Thanks for sharing!