Firefox Multi-Account Containers lets you keep parts of your online life separated into color-coded tabs that preserve your privacy. Cookies are separated by container, allowing you to use the web with multiple identities or accounts simultaneously.
Find a file
luke crouch 385c585888 Merge pull request #784 from jonathanKingston/fix-new-tab
Simplify new tab creation in the popup fixing issues. Fixes #781
2017-09-05 13:30:34 -05:00
bin fix #162: bin/build-addon.sh automates txp deploys 2017-02-22 17:20:37 -08:00
data Add styles for 55+56 versions of Firefox so everyone gets a consistent underline. Fixes #779 2017-08-31 11:58:03 -07:00
docs Name change. Fixes #763 2017-09-01 15:16:56 -07:00
test Add ESLint no-var and prefer-const rules 2017-01-16 16:33:12 -08:00
webextension Merge pull request #784 from jonathanKingston/fix-new-tab 2017-09-05 13:30:34 -05:00
.env update README to be current 2017-01-05 16:40:25 -06:00
.eslintignore Remove legacy telemetry code as non functional now 2017-08-15 19:30:57 +01:00
.eslintrc.js Remove legacy telemetry code as non functional now 2017-08-15 19:30:57 +01:00
.gitignore Adding tooltips. Fixes #615. Fixes #609. Fixes #112 2017-06-22 14:40:01 +01:00
.htmllintrc Adding in CSS and HTML linting. Fixes 72 2017-01-30 16:02:26 +00:00
.jpmignore Merge pull request #292 from bakulf/context 2017-02-28 20:07:26 +01:00
.stylelintrc Adding container assignment exemption on confirm prompt. Fixes #500 2017-05-25 17:02:16 +01:00
.travis.yml add irc notifications for Travis CI builds 2017-03-06 20:30:04 +00:00
bootstrap.js Reset prefs for new users on uninstall. Fixes #782 2017-08-31 15:00:40 -07:00
CODE_OF_CONDUCT.md Add a code of conduct and contributing file. 2017-06-23 14:22:26 +01:00
CONTRIBUTING.md Add a code of conduct and contributing file. 2017-06-23 14:22:26 +01:00
icon.png for #5: start browser action UI 2016-12-20 11:05:37 -06:00
install.rdf Name change. Fixes #763 2017-09-01 15:16:56 -07:00
LICENSE.txt License added 2017-01-13 11:48:01 +01:00
package.json Name change. Fixes #763 2017-09-01 15:16:56 -07:00
README.md Name change. Fixes #763 2017-09-01 15:16:56 -07:00

Firefox Multi-Account Containers

Available on Test Pilot

Embedded Web Extension to build Containers as a Firefox Test Pilot Experiment and Shield Study to learn:

  • Will a general Firefox audience understand the Containers feature?
  • Is the UI as currently implemented in Nightly clear or discoverable?

For more info, see:

Requirements

  • node 7+ (for jpm)
  • Firefox 53+

Development

Web Extension Development

Since Firefox 57, this extension can now be run without any of the legacy components that were previously needed.

  1. Install web-ext with npm
  2. cd webextension; web-ext run -f Nightly

This will work in other builds of Firefox however certain features won't work and you will need to manually flip preferences to enable containers. All other sections of this guide talk about using the legacy setup with jpm.

Legacy Development

Development Environment

Add-on development is better with a particular environment. One simple way to get that environment set up is to install the DevPrefs add-on. You can make a custom Firefox profile that includes the DevPrefs add-on, and use that profile when you run the code in this repository.

  1. Make a new profile by running /path/to/firefox -P, which launches the profile editor. "Create Profile" -- name it whatever you wish (e.g. 'addon_dev') and store it in the default location. It's probably best to deselect the option to "Use without asking," since you probably don't want to use this as your default profile.

  2. Once you've created your profile, click "Start Firefox". A new instance of Firefox should launch. Go to Tools->Add-ons and search for "DevPrefs". Install it. Quit Firefox.

  3. Now you have a new, vanilla Firefox profile with the DevPrefs add-on installed. You can use your new profile with the code in this repository like so:

Run the .xpi file in an unbranded build

Release & Beta channels do not allow un-signed add-ons, even with the DevPrefs. So, you must run the add-on in an unbranded build:

  1. Download and install an un-branded build of Firefox
  2. Download the latest .xpi from this repository's releases
  3. Run the un-branded build of Firefox with your DevPrefs profile
  4. Go to about:addons
  5. Click the gear, and select "Install Add-on From File..."
  6. Select the .xpi file

Correct prefs

Whilst this is still using legacy code to test you will need the following in your profile:

Change the following prefs in about:config:

  • extensions.legacy.enabled = true
  • xpinstall.signatures.required = false

Run the TxP experiment with jpm

  1. git clone git@github.com:mozilla/testpilot-containers.git
  2. cd testpilot-containers
  3. npm install
  4. ./node_modules/.bin/jpm run -p /Path/To/Firefox/Profiles/{junk}.addon_dev -b FirefoxBeta (where FirefoxBeta might be: ~//obj-x86_64-pc-linux-gnu/dist/bin/firefox or ~//firefox)

Check out the Browser Toolbox for more information about debugging add-on code.

Building .xpi

To build a local testpilot-containers.xpi, use the plain jpm xpi command, or run npm run build.

Signing an .xpi

To sign an .xpi, use jpm sign command.

Note: You will need to be an author on the AMO add-on.

Testing

TBD

Distributing

TBD