Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e3ed4582d2 | |||
| 38c098edb6 | |||
| ee63f72f3e | |||
| 4cbcfac0f4 | |||
| 641c95e64e | |||
| b646a9183c | |||
| 6e2ed6393e | |||
| af98174a19 | |||
| 1c8530ef02 | |||
| 366f9ec047 | |||
| 63343f18eb | |||
| 080e9dd22d |
@@ -1028,6 +1028,8 @@ const ContainerService = {
|
|||||||
// Let's forget all the previous closed tabs.
|
// Let's forget all the previous closed tabs.
|
||||||
this._forgetIdentity();
|
this._forgetIdentity();
|
||||||
|
|
||||||
|
this._resetContainerToCentralIcons();
|
||||||
|
|
||||||
const preInstalledIdentities = data.preInstalledIdentities;
|
const preInstalledIdentities = data.preInstalledIdentities;
|
||||||
ContextualIdentityProxy.getIdentities().forEach(identity => {
|
ContextualIdentityProxy.getIdentities().forEach(identity => {
|
||||||
if (!preInstalledIdentities.includes(identity.userContextId)) {
|
if (!preInstalledIdentities.includes(identity.userContextId)) {
|
||||||
@@ -1326,8 +1328,6 @@ ContainerWindow.prototype = {
|
|||||||
this._shutdownFileMenu();
|
this._shutdownFileMenu();
|
||||||
this._shutdownAllTabsMenu();
|
this._shutdownAllTabsMenu();
|
||||||
this._shutdownContextMenu();
|
this._shutdownContextMenu();
|
||||||
|
|
||||||
this._shutdownContainers();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_shutDownPlusButtonMenuElement(buttonElement) {
|
_shutDownPlusButtonMenuElement(buttonElement) {
|
||||||
@@ -1390,7 +1390,7 @@ ContainerWindow.prototype = {
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
_shutdownContainers() {
|
_resetContainerToCentralIcons() {
|
||||||
ContextualIdentityProxy.getIdentities().forEach(identity => {
|
ContextualIdentityProxy.getIdentities().forEach(identity => {
|
||||||
if (IDENTITY_ICONS_STANDARD.indexOf(identity.icon) !== -1 &&
|
if (IDENTITY_ICONS_STANDARD.indexOf(identity.icon) !== -1 &&
|
||||||
IDENTITY_COLORS_STANDARD.indexOf(identity.color) !== -1) {
|
IDENTITY_COLORS_STANDARD.indexOf(identity.color) !== -1) {
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "testpilot-containers",
|
"name": "testpilot-containers",
|
||||||
"title": "Containers Experiment",
|
"title": "Containers Experiment",
|
||||||
"description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.",
|
"description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.",
|
||||||
"version": "2.4.0",
|
"version": "2.5.0",
|
||||||
"author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston",
|
"author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/mozilla/testpilot-containers/issues"
|
"url": "https://github.com/mozilla/testpilot-containers/issues"
|
||||||
|
|||||||
@@ -7,10 +7,15 @@ const { when: unload } = require("sdk/system/unload");
|
|||||||
|
|
||||||
const shield = require("./lib/shield/index");
|
const shield = require("./lib/shield/index");
|
||||||
|
|
||||||
|
const surveyUrl = "https://www.surveygizmo.com/s3/3621810/shield-txp-containers";
|
||||||
|
|
||||||
const studyConfig = {
|
const studyConfig = {
|
||||||
name: self.addonId,
|
name: self.addonId,
|
||||||
days: 28,
|
days: 28,
|
||||||
surveyUrls: {
|
surveyUrls: {
|
||||||
|
"end-of-study": surveyUrl,
|
||||||
|
"user-ended-study": surveyUrl,
|
||||||
|
ineligible: null,
|
||||||
},
|
},
|
||||||
variations: {
|
variations: {
|
||||||
"control": () => {},
|
"control": () => {},
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
background-color: #fefefe;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ load();
|
|||||||
async function openInContainer(redirectUrl, cookieStoreId) {
|
async function openInContainer(redirectUrl, cookieStoreId) {
|
||||||
const tab = await getCurrentTab();
|
const tab = await getCurrentTab();
|
||||||
await browser.tabs.create({
|
await browser.tabs.create({
|
||||||
|
index: tab[0].index + 1,
|
||||||
cookieStoreId,
|
cookieStoreId,
|
||||||
url: redirectUrl
|
url: redirectUrl
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Containers Experiment",
|
"name": "Containers Experiment",
|
||||||
"version": "2.4.0",
|
"version": "2.5.0",
|
||||||
|
|
||||||
"description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.",
|
"description": "Containers works by isolating cookie jars using separate origin-attributes defined visually by colored ‘Container Tabs’. This add-on is a modified version of the containers feature for Firefox Test Pilot.",
|
||||||
"icons": {
|
"icons": {
|
||||||
@@ -35,7 +35,8 @@
|
|||||||
"commands": {
|
"commands": {
|
||||||
"_execute_browser_action": {
|
"_execute_browser_action": {
|
||||||
"suggested_key": {
|
"suggested_key": {
|
||||||
"default": "Ctrl+Period"
|
"default": "Ctrl+Period",
|
||||||
|
"mac": "MacCtrl+Period"
|
||||||
},
|
},
|
||||||
"description": "Open containers panel"
|
"description": "Open containers panel"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user