Enabling containers by pref

This commit is contained in:
baku 2017-01-06 17:01:12 +01:00
parent a1f08175a2
commit 0c561716b2

View file

@ -4,6 +4,19 @@ const {ContextualIdentityService} = require('resource://gre/modules/ContextualId
const tabs = require('sdk/tabs');
const webExtension = require('sdk/webextension');
/* Let's start enabling Containers */
var prefs = [
[ "privacy.userContext.enabled", true ],
[ "privacy.userContext.ui.enabled", true ],
[ "privacy.usercontext.about_newtab_segregation.enabled", true ],
[ "privacy.usercontext.longPressBehavior", 1 ]
];
const prefService = require("sdk/preferences/service");
prefs.forEach((pref) => {
prefService.set(pref[0], pref[1]);
});
const CONTAINER_STORE = 'firefox-container-';
const identitiesState = {