Skip to content
← Back to projects

Passport Containers

Firefox extension that opens each site in the right container automatically. Per-path rules, keywords and bookmarks that pick their own container, all synced through your Firefox account.

JavaScriptGitHub Actions
Passport Containers

Passport is a Firefox extension for people who live in containers. You tell it which container a site or a path belongs to, and every link, keyword and bookmark ends up there, on every machine signed in to the same Firefox account.

The part I'm most pleased with is the keywords. Firefox has no extension API for bookmark keywords, and Mozilla closed that request years ago. Passport gets around it by signing in to your own Mozilla account and writing the keyword the same way Firefox Sync does, so renaming a keyword in Passport renames it on the bookmark too.

Case Study

The Problem

I keep clients, work and personal stuff in separate Firefox containers. The rules lived in one extension, keywords in another place, bookmarks knew nothing about containers, and a keyword typed in the URL bar always opened in whatever container the tab happened to be in.

The Approach

I pulled it all into one extension. Rules match on host and path, with glob and regex when needed, and use the Containerise format, so an existing setup pastes straight in. Keywords open their URL in a chosen container, and a bookmark with ?passport=Name picks its own. Everything lives in Firefox sync storage. Firefox doesn't let extensions set bookmark keywords, so if you sign in with your Mozilla account Passport writes them through Firefox Sync instead, and you get the real top suggestion in the URL bar.

The Outcome

Published on addons.mozilla.org and in daily use on my own machines, with around 70 rules and 40 keywords. The source is on GitHub under MIT.