Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e3a616d8cc | |||
| 1019f592c0 | |||
| a901ac3550 | |||
| 98b8fd18ca | |||
| 31d48bf6dc | |||
| e6b93e216b | |||
| fbba53a8cb | |||
| 9c2e5f8c7d | |||
| 8933edb93a | |||
| ea569184e1 | |||
| a3766ffcc3 | |||
| 0343c8cc00 | |||
| b50f3d3d9e | |||
| cffad0c8ad |
+2
-1
@@ -23,4 +23,5 @@ if [[ $# -gt 0 ]]; then
|
|||||||
EXTRA_PARAMS="--filename $1"
|
EXTRA_PARAMS="--filename $1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(npm bin)/web-ext build --overwrite-dest $EXTRA_PARAMS || die
|
# Let's include just 'en' for this release
|
||||||
|
$(npm bin)/web-ext build --overwrite-dest $EXTRA_PARAMS --ignore-files $(find _locales/* | grep \/en -v) $(find _locales/* | grep en_) || die
|
||||||
|
|||||||
+8
-9
@@ -2,30 +2,29 @@
|
|||||||
"name": "testpilot-containers",
|
"name": "testpilot-containers",
|
||||||
"title": "Multi-Account Containers",
|
"title": "Multi-Account Containers",
|
||||||
"description": "Containers helps you keep all the parts of your online life contained in different tabs. Custom labels and color-coded tabs help keep different activities — like online shopping, travel planning, or checking work email — separate.",
|
"description": "Containers helps you keep all the parts of your online life contained in different tabs. Custom labels and color-coded tabs help keep different activities — like online shopping, travel planning, or checking work email — separate.",
|
||||||
"version": "8.0.0",
|
"version": "8.0.3",
|
||||||
"author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston",
|
"author": "Andrea Marchesini, Luke Crouch, Lesley Norton, Kendall Werts, Maxx Crawford, Jonathan Kingston",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/mozilla/multi-account-containers/issues"
|
"url": "https://github.com/mozilla/multi-account-containers/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"addons-linter": "^1.3.2",
|
"addons-linter": "^1.3.2",
|
||||||
"ajv": "^6.6.3",
|
"ajv": "^6.6.3",
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"eslint": "^6.6.0",
|
"eslint": "^8.3.0",
|
||||||
"eslint-plugin-no-unsanitized": "^2.0.0",
|
"eslint-plugin-no-unsanitized": "^2.0.0",
|
||||||
"eslint-plugin-promise": "^3.4.0",
|
"eslint-plugin-promise": "^3.4.0",
|
||||||
"htmllint-cli": "0.0.7",
|
"htmllint-cli": "^0.0.6",
|
||||||
"json": ">=10.0.0",
|
"json": ">=10.0.0",
|
||||||
"mocha": "^6.2.2",
|
"mocha": "^9.1.3",
|
||||||
"npm-run-all": "^4.0.0",
|
"npm-run-all": "^4.0.0",
|
||||||
"nyc": "^15.0.0",
|
"nyc": "^15.0.0",
|
||||||
"sinon": "^7.5.0",
|
"sinon": "^8.1.1",
|
||||||
"sinon-chai": "^3.3.0",
|
"sinon-chai": "^3.7.0",
|
||||||
"stylelint": "^13.5.0",
|
"stylelint": "^13.5.0",
|
||||||
"stylelint-config-standard": "^20.0.0",
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"stylelint-order": "^4.0.0",
|
"stylelint-order": "^4.0.0",
|
||||||
"web-ext": "^5.4.1",
|
"web-ext": "^6.6.0",
|
||||||
"webextensions-jsdom": "^1.2.1"
|
"webextensions-jsdom": "^1.2.1"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/mozilla/multi-account-containers#readme",
|
"homepage": "https://github.com/mozilla/multi-account-containers#readme",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button id="deny" class="button" data-message-id="openInContainer" data-message-arg="current-container-name"></button>
|
<button id="deny" class="button" data-message-id="openInContainer" data-message-arg="current-container-name"></button>
|
||||||
<button id="confirm" class="button primary" data-message-id="openInContainer" data-message-arg="container-name"></button>
|
<button id="confirm" class="button primary" autofocus data-message-id="openInContainer" data-message-arg="container-name"></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -188,13 +188,13 @@ window.assignManager = {
|
|||||||
// The following blocks potentially dangerous requests for privacy that come without a tabId
|
// The following blocks potentially dangerous requests for privacy that come without a tabId
|
||||||
|
|
||||||
if(requestInfo.tabId === -1) {
|
if(requestInfo.tabId === -1) {
|
||||||
return {type: "direct"};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const tab = await browser.tabs.get(requestInfo.tabId);
|
const tab = await browser.tabs.get(requestInfo.tabId);
|
||||||
const result = await proxifiedContainers.retrieve(tab.cookieStoreId);
|
const result = await proxifiedContainers.retrieve(tab.cookieStoreId);
|
||||||
if (!result || !result.proxy) {
|
if (!result || !result.proxy) {
|
||||||
return {type: "direct"};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!result.proxy.mozProxyEnabled) {
|
if (!result.proxy.mozProxyEnabled) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const MAJOR_VERSIONS = ["2.3.0", "2.4.0", "6.2.0", "8.0.0"];
|
const MAJOR_VERSIONS = ["2.3.0", "2.4.0", "6.2.0", "8.0.2"];
|
||||||
const badge = {
|
const badge = {
|
||||||
async init() {
|
async init() {
|
||||||
const currentWindow = await browser.windows.getCurrent();
|
const currentWindow = await browser.windows.getCurrent();
|
||||||
|
|||||||
+14
-6
@@ -1582,7 +1582,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
|
|||||||
this.mozProxyEnabledInput.value = proxyInfo.mozProxyEnabled;
|
this.mozProxyEnabledInput.value = proxyInfo.mozProxyEnabled;
|
||||||
this.proxyAddressInput.value = `${proxyInfo.type}://${proxyInfo.host}:${proxyInfo.port}`;
|
this.proxyAddressInput.value = `${proxyInfo.type}://${proxyInfo.host}:${proxyInfo.port}`;
|
||||||
|
|
||||||
if (typeof(proxyInfo.countryCode) === "undefined" && proxyInfo.type !== "direct") {
|
if (typeof(proxyInfo.countryCode) === "undefined" && proxyInfo.type) {
|
||||||
// Set custom proxy URL below 'Advanced proxy settings' button label
|
// Set custom proxy URL below 'Advanced proxy settings' button label
|
||||||
this.advancedProxyAddress.textContent = `${proxyInfo.type}://${proxyInfo.host}:${proxyInfo.port}`;
|
this.advancedProxyAddress.textContent = `${proxyInfo.type}://${proxyInfo.host}:${proxyInfo.port}`;
|
||||||
}
|
}
|
||||||
@@ -1929,10 +1929,18 @@ Logic.registerPanel(P_ADVANCED_PROXY_SETTINGS, {
|
|||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
const identity = Logic.currentIdentity();
|
const identity = Logic.currentIdentity();
|
||||||
console.log(this._advancedProxyInput);
|
const advancedProxyInput = document.getElementById("edit-advanced-proxy-input");
|
||||||
|
|
||||||
// reset input
|
// reset input
|
||||||
this._advancedProxyInput.value = "";
|
const resetProxyInput = () => {
|
||||||
|
if (!advancedProxyInput) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
advancedProxyInput.value = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
resetProxyInput();
|
||||||
|
|
||||||
this.hideInvalidEntryWarning();
|
this.hideInvalidEntryWarning();
|
||||||
|
|
||||||
const setProxyInputPlaceholder = (proxy) => {
|
const setProxyInputPlaceholder = (proxy) => {
|
||||||
@@ -1940,8 +1948,8 @@ Logic.registerPanel(P_ADVANCED_PROXY_SETTINGS, {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const edit_proxy_dom = function(proxy) {
|
const edit_proxy_dom = function(proxy) {
|
||||||
if (proxy.type === "direct" || typeof proxy.type === "undefined" || MozillaVPN.proxyIsDisabled(proxy)) {
|
if (!proxy.type || MozillaVPN.proxyIsDisabled(proxy)) {
|
||||||
this._advancedProxyInput.value = "";
|
resetProxyInput();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return setProxyInputPlaceholder(proxy);
|
return setProxyInputPlaceholder(proxy);
|
||||||
@@ -1951,7 +1959,7 @@ Logic.registerPanel(P_ADVANCED_PROXY_SETTINGS, {
|
|||||||
if (proxyData) {
|
if (proxyData) {
|
||||||
edit_proxy_dom(proxyData.proxy);
|
edit_proxy_dom(proxyData.proxy);
|
||||||
} else {
|
} else {
|
||||||
this._advancedProxyInput.value = "";
|
resetProxyInput();
|
||||||
}
|
}
|
||||||
const containerColor = document.querySelector(".proxy-title-container-color");
|
const containerColor = document.querySelector(".proxy-title-container-color");
|
||||||
containerColor.dataset.identityColor = identity.color;
|
containerColor.dataset.identityColor = identity.color;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ proxifiedContainers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mozillaVpnData && mozillaVpnData.mozProxyEnabled === undefined) {
|
if (mozillaVpnData && mozillaVpnData.mozProxyEnabled === undefined) {
|
||||||
matches.groups.type = "direct";
|
matches.groups.type = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mozillaVpnData) {
|
if (!mozillaVpnData) {
|
||||||
|
|||||||
+3
-8
@@ -1,19 +1,13 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Firefox Multi-Account Containers",
|
"name": "Firefox Multi-Account Containers",
|
||||||
"version": "8.0.0",
|
"version": "8.0.3",
|
||||||
"incognito": "not_allowed",
|
"incognito": "not_allowed",
|
||||||
"description": "__MSG_extensionDescription__",
|
"description": "__MSG_extensionDescription__",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "img/container-site-d-48.png",
|
"48": "img/container-site-d-48.png",
|
||||||
"96": "img/container-site-d-96.png"
|
"96": "img/container-site-d-96.png"
|
||||||
},
|
},
|
||||||
"applications": {
|
|
||||||
"gecko": {
|
|
||||||
"id": "@testpilot-containers",
|
|
||||||
"strict_min_version": "67.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"homepage_url": "https://github.com/mozilla/multi-account-containers#readme",
|
"homepage_url": "https://github.com/mozilla/multi-account-containers#readme",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"<all_urls>",
|
"<all_urls>",
|
||||||
@@ -37,7 +31,8 @@
|
|||||||
],
|
],
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "@testpilot-containers"
|
"id": "@testpilot-containers",
|
||||||
|
"strict_min_version": "91.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
|
|||||||
Reference in New Issue
Block a user