Picture two windows on one computer showing the same mail service, one for your work inbox and one for your personal inbox. The goal is for each window to keep the right session and for you to recognize it before opening, uploading, or sharing anything. This walkthrough uses the Firefox 161.0 desktop documentation and includes the legacy menu route, a no-code check, and a local storage lab.
This procedure checks whether one browser context automatically inherits another’s session and helps reduce some cross-site tracking. The service can still identify an account at sign-in and may correlate visits using its identity provider, network information, and device signals. A passing local test cannot determine whether the service links those visits. Review the service’s privacy and sharing settings for the account information you control.
Choose the right kind of separation
| Method | What it separates | When to use it |
|---|---|---|
| Profiles | Local sign-in cookies, site storage, history, bookmarks, extensions and settings | Your personal browsing and work need separate windows and separate browser data |
| Multi-Account Containers | Separate site cookies and storage per container within a single profile; history, bookmarks and extensions still belong to that profile | You use two authorized accounts on the same mail service in one window |
| Private Browsing | A temporary session separate from normal windows; Firefox clears its session data when every private window closes, while downloaded files and new bookmarks remain | A temporary visit or a sign-in check |
| Total Cookie Protection | Partitions cookies exposed to embedded content by the top-level site | Reduce the ability of an embedded third party to reuse its cookie across sites |
| Separate operating-system users | Separate local files, logins and access permissions as configured by the operating system | Two people share one computer and each needs a password-protected desktop |
Mozilla profile management · Mozilla about:profiles and the Profile Manager · Mozilla Firefox containers · Mozilla Private Browsing · Mozilla Total Cookie Protection in Standard mode
A site can see several different kinds of identity signal. Cookies maintain a session, localStorage holds application state or an identifier, an account ID comes from the signed-in service, and an IP address comes from the connection. Two profiles can have independent sessions and still display the same account if you sign in to both with it. When both go through the same network, the destination often sees the same public egress IP.
Before you start, keep your current profile
- In your current Firefox window, open the menu and choose Help → About Firefox to check your version. Labels can vary by system and language. Make sure you are in a regular window before creating profiles or testing containers.
- Keep your current profile with its bookmarks and passwords as Personal. Create one additional profile called Work and choose a color you can recognize across the room. On a managed device, use the accounts and browser features your organization authorizes.
- Pick a service on which you already have permission to use both a work and a personal account. Write down the public homepage address. Start from that address in both windows. Leave private invitations, one-time sign-in links, and callback URLs where they are.
Option A. Create and switch using Profiles
- Click the account or current profile icon in the toolbar. Choose Profiles → + New profile. You can also look for Profiles in the main Firefox menu. A second Firefox window or Dock icon is expected.
- Name the new profile Work, choose a theme and avatar, and click Done editing. Add a work bookmark manually if you need one. Start with an empty profile and skip copying, password import, and Sync until the setup works.
- To open an existing profile, click the account icon, click the current profile name, and pick Work or Personal from the list. Check the window color before entering an address or following a bookmark.
- For a startup picker, click the account icon → current profile name → Manage Profiles, then enable Choose a profile when Firefox opens. Quit Firefox and reopen it to check that you can select the intended profile.
Start the isolation check with empty profiles and skip data import and Firefox Sync for the first run. A copied profile carries over settings and browsing data. Mozilla documents a same-device limit on using the same Mozilla account across profiles in the newer manager. Check those rules before deciding which data to sync.
Mozilla profile management · Mozilla about:profiles and the Profile Manager
Option B. Create and switch using about:profiles
- When there is no Profiles menu, type about:profiles directly into the address bar. Note the name of the profile in use and the default profile so you can identify the original configuration later.
- Click Create a New Profile. In the wizard, continue and enter Work as the name. Leave the location at Firefox’s default and finish. A new entry named Work should appear in the list.
- In the Work entry, click Launch profile in new browser. Open about:profiles in the new window and confirm that Work is marked as the profile in use. Close the settings tab after checking.
- If the new profile became the default and you prefer the original startup behavior, return to about:profiles and click Set as default profile under the original entry. You can still launch the Work profile from the same page.
Check both logins without code
- Open the service’s public homepage in Personal and sign in with your authorized personal account. Open the service’s account menu and verify the masked email or username on your own screen. Your Firefox profile name describes the window, while the service’s account menu indicates the active login.
- In the Work window, enter the same public homepage address manually. A fresh profile usually shows a sign-in page. If your service sends you to Google, Microsoft, or your organization’s identity provider, read the account shown there and select Use another account if you need to choose the authorized work identity.
- Refresh both windows and check that each account menu still shows the intended account. Close and reopen Work using its profile. If the site session is still valid, the work identity should return. If you have to sign in again, check the site’s session expiry and the profile’s history-clearing settings.
- Open a regular link from a mail or chat app and see where it lands. If the profile color or site avatar is wrong, close that tab and open the public address in the intended profile. Check your account again before sending, uploading, or sharing.
Mozilla profile management · r/firefox · Which profile receives an external link?
Use containers when you prefer one window
- If you only need two independent sessions within a single window, look under Settings → Tabs and browsing → Containers → Manage settings → Add New Container. Built-in containers are rolling out gradually. Use the extension route below if this menu is absent.
- On Mozilla Add-ons, open Firefox Multi-Account Containers. Confirm the publisher is Firefox, select Add to Firefox, and review the permissions. Use the puzzle-piece menu to find the extension and pin it if you want quicker access.
- In the extension use Manage Containers and the new-container button to create differently colored Personal and Work containers. Select a named container from the toolbar icon, or right-click the new-tab plus and choose one. Check the colored label before visiting a site.
- Open the same public homepage in both colored tabs. Sign in with the respective authorized accounts and verify each site’s account menu. A regular tab without a container indicator generally uses the ordinary session.
- Choose the container manually when both accounts use the same URL. If the extension already redirects this address into one container, open Manage Containers → the assigned container → Manage site list and remove the rule, then reopen both colored tabs.
Mozilla Firefox containers · Mozilla Add-ons · Firefox Multi-Account Containers · Mozilla · Firefox Containers preview · Mozilla Support Forum · Two Gmail accounts and container assignment
Test cookies and localStorage on your own computer
Use two fresh normal profiles and Python 3. Save the code below as firefox-isolation-lab.py and run python3 firefox-isolation-lab.py from its directory. The page listens only on 127.0.0.1 and uses the fixed marker A. It needs no external test service or real account data.
from http.server import BaseHTTPRequestHandler, HTTPServer
PAGE = b"""<!doctype html>
<meta charset="utf-8">
<title>Firefox isolation lab</title>
<button id="write">Write A</button>
<button id="read">Read</button>
<button id="clear">Clear</button>
<output id="result"></output>
<script>
const key = "fx_profile_demo";
function show() {
const cookie = document.cookie.split(";").some(
part => part.trim() === key + "=A"
);
const storage = localStorage.getItem(key) === "A";
document.querySelector("#result").textContent =
"Cookie=" + (cookie ? "present" : "empty") +
" | localStorage=" + (storage ? "present" : "empty");
}
document.querySelector("#write").onclick = () => {
document.cookie = key + "=A; Path=/; SameSite=Lax";
localStorage.setItem(key, "A");
show();
};
document.querySelector("#read").onclick = show;
document.querySelector("#clear").onclick = () => {
document.cookie = key + "=; Max-Age=0; Path=/; SameSite=Lax";
localStorage.removeItem(key);
show();
};
show();
</script>"""
class Handler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path != "/":
self.send_error(404)
return
self.send_response(200)
self.send_header("Content-Type", "text/html; charset=utf-8")
self.send_header("Cache-Control", "no-store")
self.end_headers()
self.wfile.write(PAGE)
def log_message(self, *_args):
pass
if __name__ == "__main__":
print("http://127.0.0.1:8765/ (Ctrl+C to stop)", flush=True)
with HTTPServer(("127.0.0.1", 8765), Handler) as server:
server.serve_forever()- Open http://127.0.0.1:8765/ in profile A, click Clear, then click Write A. Open the exact address in a second ordinary tab in A and record its output.
- Open the same address in a normal window in profile B. Click Read without writing. Return to A and reload the page to confirm the value is still there.
- Click Clear in both profiles and press Ctrl+C in the terminal. Keep the address, scheme and port identical throughout. A file opened from disk or a different host such as localhost gives you a different test.
| Where you read | Cookie | localStorage | What the output shows |
|---|---|---|---|
| A after writing | present | present | The page stored both markers |
| A, second normal tab | present | present | Normal same-origin tabs in one profile share storage |
| B, first read | empty | empty | B did not inherit A’s local state |
| A reloaded after reading B | present | present | Reading B left A’s state intact |
| A immediately after an unsuccessful write | empty or error | empty or error | Check the address, window type and any site-data restrictions |
We ran the lab on macOS with Playwright’s Firefox 159.0 and two temporary browser profiles. Both reads in A returned present, B returned empty, and reloading A preserved both markers. This checks the two storage mechanisms on the local demo. The Firefox 161.0 menu instructions come from Mozilla’s documentation.
Firefox 161.0 release notes · Mozilla profile management · Mozilla about:profiles and the Profile Manager
If B shows the marker, use about:profiles in both windows to confirm their current profile names and retry with clean profiles. With an account you own, validate the real workflow separately by confirming the window color, domain and account shown on the website. This lab verifies same-origin cookie and localStorage behavior. Single sign-on, cloud sync and server-side account identity require separate checks.
Reduce the fingerprinting signals websites can use
A fingerprinting script can combine characteristics such as screen properties, font measurements, browser language and rendering behavior. Profiles on one computer may expose similar characteristics. Mozilla’s Known Fingerprinters protection blocks scripts based on a maintained list. Its Suspected Fingerprinters protection limits some of the information websites can read.
Mozilla describes two observable effects. Drawing to Canvas looks the same, but when a site reads the pixels back the protection can add subtle noise to the returned image. Some fonts installed separately from the operating system’s standard set may also be unavailable to pages, producing a font fallback. Compare the same site, window type and ETP preset when checking a difference.
- In the profile you want to adjust, open Settings → Privacy & Security and locate Enhanced Tracking Protection. Note whether the current preset is Standard, Strict, or Custom. Each profile has its own settings.
- Open a familiar site in Standard and click the shield beside the address. Review the types of tracking Firefox blocked on that visit. Standard blocks known fingerprinters and uses Total Cookie Protection for cross-site cookie partitioning.
- To try stronger tracker protection, select Strict in the same profile. Open Advanced settings first if your interface shows that heading. Follow any prompt to reload tabs and test your usual sign-ins, fonts, embedded video, and forms.
- If the site works in Standard and breaks in Strict, use the shield’s site-specific toggle for a brief comparison. Restore protection and reload when finished. Firefox also provides a way to report the broken site.
- Changes to screen, font, or Canvas test results reflect changes to some browser signals. The shield lists actions Firefox took on the page. You can also review site permissions and remove location, camera, or microphone access you no longer need.
Mozilla Total Cookie Protection in Standard mode · Mozilla fingerprinting protection · Mozilla Enhanced Tracking Protection on desktop · Mozilla Security Research · Fingerprinting study
If a page only fails in Strict, a temporary site exception can help narrow down the compatibility issue. Restore protection from the shield after checking, and use the reporting option if appropriate. The shield reports actions on the current page. It cannot measure whether a site recognized your device or put a percentage on recognition. Keep screenshots containing your raw device characteristics private.
If you choose to use EFF’s Cover Your Tracks, review what it collects first. A uniqueness verdict compares your browser with the test’s recent visitor sample. The reading can change when the sample or time period changes. Record the browser version, mode and date when comparing settings and interpret the number within that test.
Troubleshoot with real community scenarios
| What you see | Where to check | What to change |
|---|---|---|
| Both windows show the same inbox | Check both site account menus and the Firefox profile names. | If the profiles are correct, switch the service account in the intended window and verify the identity selected at the sign-in provider. |
| Links from chat keep opening in the original Firefox window | Check the window’s theme and the site’s account avatar. | Open the public URL manually in the intended window before taking an action. |
| There is no container menu | Check for a private window or a Never remember history setting. | Try native containers or the Mozilla extension in a regular profile that allows history. Use private windows for temporary browsing. |
| Both containers suggest the same saved password | Containers share the profile’s password manager. | Check the site avatar for the active login. Use separate profiles if you also need separate saved logins and review Sync settings. |
| Fonts or sign-in behave oddly in Strict | Compare Standard and Strict in the same profile on the same URL. | Use a temporary per-site exception to identify breakage and restore protection after testing. |
Mozilla Firefox containers · Mozilla Private Browsing · Mozilla Enhanced Tracking Protection on desktop · Mozilla Support Forum · Two Gmail accounts and container assignment · r/firefox · Which profile receives an external link? · Mozilla Support Forum · Two private windows
An October r/firefox thread started with a user separating banking and other browsing into profiles and wondering whether containers could replace them. The useful distinction was between separate sessions and separate browser data. Containers handle the former, while a dedicated profile also lets banking have its own history, bookmarks and extensions. A visual work or finance theme makes choosing the right window easier.
r/firefox discussion of containers versus banking profiles · Mozilla Firefox containers
In a November thread about a Firefox 162 container preview, people discussed where links opened outside the browser should land and how to use multiple accounts on the same host. A URL assignment can help when a host belongs to one account. When two accounts share a host, opening the appropriate colored tab first and pasting the link gives you explicit control. The preview is evidence of the user problem; the stable instructions here come from Mozilla’s documentation.
r/firefox discussion of the Firefox 162 container preview · Firefox 161.0 release notes · Mozilla Firefox containers
Private windows normally share the same temporary session. Close every private window before checking that the session has been cleared. For two people on a shared computer, separate operating-system users also protect their local files. During migration, about:profiles distinguishes the root directory that holds profile data from the local cache directory. If removing a profile from the list, retain the files until you have checked your backup.
Mozilla profile management · Mozilla about:profiles and the Profile Manager · Mozilla Private Browsing