Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 532abbf032 | |||
| d8f99ada77 | |||
| 35cf2c95d4 | |||
| 19e694d8eb | |||
| ae1f80b8b5 | |||
| 358551feda |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"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": "6.2.2",
|
"version": "6.2.5",
|
||||||
"author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston",
|
"author": "Andrea Marchesini, Luke Crouch and Jonathan Kingston",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/mozilla/multi-account-containers/issues"
|
"url": "https://github.com/mozilla/multi-account-containers/issues"
|
||||||
|
|||||||
+7
-18
@@ -17,25 +17,14 @@ async function load() {
|
|||||||
const currentContainer = await browser.contextualIdentities.get(currentCookieStoreId);
|
const currentContainer = await browser.contextualIdentities.get(currentCookieStoreId);
|
||||||
document.getElementById("current-container-name").textContent = currentContainer.name;
|
document.getElementById("current-container-name").textContent = currentContainer.name;
|
||||||
}
|
}
|
||||||
|
document.getElementById("deny").addEventListener("click", (e) => {
|
||||||
document.getElementById("redirect-form").addEventListener("submit", (e) => {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let button = "confirm"; // Confirm is the form default.
|
denySubmit(redirectUrl);
|
||||||
let buttonTarget = e.explicitOriginalTarget;
|
});
|
||||||
if (buttonTarget.tagName !== "BUTTON") {
|
|
||||||
buttonTarget = buttonTarget.closest("button");
|
document.getElementById("confirm").addEventListener("click", (e) => {
|
||||||
}
|
e.preventDefault();
|
||||||
if (buttonTarget && buttonTarget.id) {
|
confirmSubmit(redirectUrl, cookieStoreId);
|
||||||
button = buttonTarget.id;
|
|
||||||
}
|
|
||||||
switch (button) {
|
|
||||||
case "deny":
|
|
||||||
denySubmit(redirectUrl);
|
|
||||||
break;
|
|
||||||
case "confirm":
|
|
||||||
confirmSubmit(redirectUrl, cookieStoreId);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -611,7 +611,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener("keydown", (e) => {
|
document.addEventListener("keydown", (e) => {
|
||||||
const selectables = [...document.querySelectorAll("[tabindex='0'], [tabindex='-1']")];
|
const selectables = [...document.querySelectorAll(".open-newtab[tabindex='0']")];
|
||||||
const element = document.activeElement;
|
const element = document.activeElement;
|
||||||
const index = selectables.indexOf(element) || 0;
|
const index = selectables.indexOf(element) || 0;
|
||||||
function next() {
|
function next() {
|
||||||
@@ -652,7 +652,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
|||||||
default:
|
default:
|
||||||
if ((e.keyCode >= 49 && e.keyCode <= 57) &&
|
if ((e.keyCode >= 49 && e.keyCode <= 57) &&
|
||||||
Logic._currentPanel === "containersList") {
|
Logic._currentPanel === "containersList") {
|
||||||
const element = selectables[e.keyCode - 48];
|
const element = selectables[e.keyCode - 49];
|
||||||
if (element) {
|
if (element) {
|
||||||
element.click();
|
element.click();
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Firefox Multi-Account Containers",
|
"name": "Firefox Multi-Account Containers",
|
||||||
"version": "6.2.2",
|
"version": "6.2.5",
|
||||||
"incognito": "not_allowed",
|
"incognito": "not_allowed",
|
||||||
"description": "Multi-Account 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": "Multi-Account 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.",
|
||||||
"icons": {
|
"icons": {
|
||||||
@@ -77,4 +77,4 @@
|
|||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "options.html"
|
"page": "options.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user