Compare commits

...

31 Commits

Author SHA1 Message Date
Andrea Marchesini 8b70aca184 Merge pull request #2828 from mozilla/surveyFinal
Final survey. #2827
2025-11-19 09:49:20 +01:00
Andrea Marchesini 0539c12ba2 Final survey 2025-11-18 10:41:30 +01:00
Andrea Marchesini d6cb8f7707 Merge pull request #2795 from loganrosen/upgrade-web-ext
Upgrade web-ext to 8.10.0
2025-11-11 10:29:09 +01:00
Logan Rosen 89aa2ffe5b Merge branch 'main' into upgrade-web-ext 2025-11-10 23:07:44 -05:00
Andrea Marchesini f072ad478c Merge pull request #2817 from mozilla/consent
Data consent dialog not required + version bump
2025-10-30 09:50:51 +01:00
Andrea Marchesini 91a92bd446 Data consent dialog not required + version bump 2025-10-29 15:04:41 +01:00
Lesley Norton f0274d1e45 Merge pull request #2816 from mozilla/achievements
Mark all the unknown achievements as done and remove the survey one during the installation
2025-10-28 09:24:22 -05:00
Andrea Marchesini 0cf1e14731 Fix a typo 2025-10-28 15:01:04 +01:00
Andrea Marchesini 1406ad34b4 8.3.4 version bump 2025-10-28 14:59:51 +01:00
Andrea Marchesini f377174bf2 Mark all the unknown achievements as done and remove the survey one during the installation 2025-10-28 14:56:52 +01:00
Andrea Marchesini f6a59ab54e Merge pull request #2810 from mozilla/temp-hide-survey
Temporarily hide research recruitment and bump version
2025-10-17 20:32:56 +02:00
Lesley Norton 542161f8b4 Also bump version in manifest.json 2025-10-17 12:49:32 -05:00
Lesley Norton a5cbb48907 Bump version 2025-10-17 12:31:50 -05:00
Lesley Norton 56c5838d2d Revert "Merge pull request #2803 from mozilla/survey"
This reverts commit c34c1c1e04, reversing
changes made to adbf310a17.
2025-10-17 12:31:00 -05:00
Lesley Norton 35956f132a Revert "Temporarily hide engagement survey and bump version"
This reverts commit b4ad47bf04.
2025-10-17 12:30:08 -05:00
Lesley Norton b4ad47bf04 Temporarily hide engagement survey and bump version 2025-10-17 12:19:00 -05:00
Andrea Marchesini c34c1c1e04 Merge pull request #2803 from mozilla/survey
Join our Multi-Account Containers Research Study! 🚀
2025-10-07 18:04:29 +02:00
Andrea Marchesini 2908419671 Fix a typo 2025-10-02 18:23:04 +02:00
Andrea Marchesini e296f438fa Update src/js/background/messageHandler.js
Co-authored-by: luke crouch <lcrouch@mozilla.com>
2025-10-02 18:19:55 +02:00
Andrea Marchesini 85ce6375e5 Update src/js/background/messageHandler.js
Co-authored-by: Maxx Crawford <maxx.crawford@gmail.com>
2025-10-02 18:19:35 +02:00
Andrea Marchesini dcc42e2a3a Update src/popup.html
Co-authored-by: Maxx Crawford <maxx.crawford@gmail.com>
2025-10-02 18:19:24 +02:00
Lesley Norton eeefaaba1e Fix CSS lint errors 2025-10-01 12:48:17 -05:00
Lesley Norton 00504ebbd9 Update survey panel 2025-10-01 19:26:06 +02:00
Andrea Marchesini 0eb13f214d Survey view 2025-10-01 19:25:53 +02:00
Andrea Marchesini adbf310a17 Merge pull request #2794 from loganrosen/usr-bin-env
Use `/usr/bin/env` instead of `/bin/env`
2025-10-01 09:42:16 +02:00
Andrea Marchesini d44d789e73 Merge pull request #2796 from loganrosen/eslint-v9
Upgrade to ESLint v9
2025-10-01 09:38:47 +02:00
Logan Rosen bd7e33b11e Upgrade to eslint v9 2025-09-20 17:09:54 -04:00
Logan Rosen 6a5e48e8b3 Upgrade web-ext to 8.10.0 2025-09-20 16:47:25 -04:00
Logan Rosen d3aa323a5a Use /usr/bin/env instead of /bin/env 2025-09-20 15:48:27 -04:00
Danny Colin aca51cc11c Merge pull request #2755 from apostrophest/eslint-ecmascript-2021
Increase eslint ecmaVersion to 2021
2025-05-20 15:09:33 -04:00
Stephen Thompson 65243e2c06 eslint ecmaVersion to 2021
CONTRIBUTING.md specifies the minimum supported Firefox version as 91.1.0.

Based on the caniuse.com data for ECMAScript features listed at https://gist.github.com/Julien-Marcou/156b19aea4704e1d2f48adafc6e2acbf, I determined the following minimum Firefox versions that support each ECMAScript version:

- ECMAScript 2018 (current setting) = Firefox 78
- ECMAScript 2019 = Firefox 64
- ECMAScript 2020 = Firefox 80
- ECMAScript 2021 = Firefox 79
- ECMAScript 2022 = Firefox 92
- ECMAScript 2023 = Firefox 104
- ECMAScript 2024 = Firefox 119+ (not exactly sure)

This project is using v7 of eslint which depends on v7 of espree for JavaScript parsing. espree v7 has a maximum ECMAScript support version of ECMAScript 2021.

Based on these findings, increasing the configured `parser.ecmaVersion` from `2018` to `2021` will allow using all JavaScript syntax supported in Firefox 91.1.0+ without raising eslint errors.
2025-04-23 15:09:26 -04:00
24 changed files with 3027 additions and 14865 deletions
-2
View File
@@ -1,2 +0,0 @@
lib/testpilot/*.js
coverage
-69
View File
@@ -1,69 +0,0 @@
module.exports = {
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"browser": true,
"es6": true,
"node": true,
"webextensions": true
},
"globals": {
"Utils": true,
"CustomizableUI": true,
"CustomizableWidgets": true,
"SessionStore": true,
"Services": true,
"Components": true,
"XPCOMUtils": true,
"OS": true,
"ADDON_UNINSTALL": true,
"ADDON_DISABLE": true,
"CONTAINER_ORDER_STORAGE_KEY": true,
"proxifiedContainers": true,
"MozillaVPN": true,
"MozillaVPN_Background": true
},
"plugins": [
"promise",
"no-unsanitized"
],
"extends": [
"eslint:recommended"
],
"root": true,
"rules": {
"promise/always-return": "off",
"promise/avoid-new": "off",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"no-unsanitized/method": [
"error"
],
"no-unsanitized/property": [
"error",
{
"escape": {
"taggedTemplates": ["Utils.escaped"]
}
}
],
"eqeqeq": "error",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-throw-literal": "error",
"no-warning-comments": "warn",
"no-var": "error",
"prefer-const": "error",
"quotes": ["error", "double"],
"radix": "error",
"semi": ["error", "always"]
}
};
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
+102
View File
@@ -0,0 +1,102 @@
const {
defineConfig,
globalIgnores,
} = require("eslint/config");
const globals = require("globals");
const promise = require("eslint-plugin-promise");
const noUnsanitized = require("eslint-plugin-no-unsanitized");
const js = require("@eslint/js");
module.exports = defineConfig([{
languageOptions: {
"ecmaVersion": 2021,
parserOptions: {},
globals: {
...globals.browser,
...globals.node,
...globals.webextensions,
"Utils": true,
"CustomizableUI": true,
"CustomizableWidgets": true,
"SessionStore": true,
"Services": true,
"Components": true,
"XPCOMUtils": true,
"OS": true,
"ADDON_UNINSTALL": true,
"ADDON_DISABLE": true,
"CONTAINER_ORDER_STORAGE_KEY": true,
"proxifiedContainers": true,
"MozillaVPN": true,
"MozillaVPN_Background": true,
},
},
plugins: {
js,
promise,
"no-unsanitized": noUnsanitized,
},
extends: ["js/recommended"],
"rules": {
"promise/always-return": "off",
"promise/avoid-new": "off",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"no-unsanitized/method": ["error"],
"no-unsanitized/property": ["error", {
"escape": {
"taggedTemplates": ["Utils.escaped"],
},
}],
"eqeqeq": "error",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-throw-literal": "error",
"no-warning-comments": "warn",
"no-var": "error",
"prefer-const": "error",
"quotes": ["error", "double"],
"radix": "error",
"semi": ["error", "always"],
},
},
{
files: ["test/**/*.js"],
languageOptions: {
globals: {
...globals.mocha,
},
},
"rules": {
"no-restricted-globals": ["error", "browser"],
},
},
{
files: ["src/js/**/*.js"],
languageOptions: {
globals: {
"assignManager": true,
"badge": true,
"backgroundLogic": true,
"identityState": true,
"messageHandler": true,
"sync": true,
},
},
},
globalIgnores(["lib/testpilot/*.js", "**/coverage"])]);
+2683 -14723
View File
File diff suppressed because it is too large Load Diff
+7 -6
View File
@@ -2,19 +2,20 @@
"name": "testpilot-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.",
"version": "8.3.0",
"version": "8.3.5",
"author": "Andrea Marchesini, Luke Crouch, Lesley Norton, Kendall Werts, Maxx Crawford, Jonathan Kingston",
"bugs": {
"url": "https://github.com/mozilla/multi-account-containers/issues"
},
"dependencies": {},
"devDependencies": {
"@eslint/js": "^9.36.0",
"addons-linter": "^5.28.0",
"ajv": "^6.6.3",
"chai": "^4.2.0",
"eslint": "^7.32.0",
"eslint-plugin-no-unsanitized": "^4.0.0",
"eslint-plugin-promise": "^5.2.0",
"eslint": "^9.36.0",
"eslint-plugin-no-unsanitized": "^4.1.4",
"eslint-plugin-promise": "^7.2.1",
"globals": "^16.4.0",
"htmllint-cli": "0.0.7",
"json": ">=10.0.0",
"mocha": "^10.1.0",
@@ -25,7 +26,7 @@
"stylelint": "^13.5.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.0.0",
"web-ext": "^7.5.0",
"web-ext": "^8.10.0",
"webextensions-jsdom": "^1.2.1"
},
"homepage": "https://github.com/mozilla/multi-account-containers#readme",
+70 -1
View File
@@ -26,10 +26,18 @@
src: url("/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
font-family: "Inter-SemiBold";
font-style: normal;
font-weight: 700;
src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
}
[data-theme="light"],
:root {
--fontInter: "Inter", sans-serif;
--fontInterMedium: "Inter-Medium", sans-serif;
--fontInterSemiBold: "Inter-SemiBold", sans-serif;
--fontMetropolis: "Metropolis", sans-serif;
--fontMetropolisLight: "Metropolis-Light", sans-serif;
--iconArrowLeft: url("/img/arrow-icon-left.svg");
@@ -1651,8 +1659,20 @@ input[type=text] {
background-color: var(--button-bg-hover-color-primary);
}
#survey-achievement-done-button {
color: var(--button-bg-color-primary);
transition: color 0.1s ease;
font-size: 14px;
padding-inline: 3px;
padding-block: 1px;
border-radius: 1px;
text-align: center;
margin-inline: auto;
}
.onboarding-button:focus,
.half-onboarding-button:focus {
.half-onboarding-button:focus,
#survey-achievement-done-button:focus {
box-shadow:
0 0 0 2px var(--button-bg-color-secondary),
0 0 0 4px var(--button-bg-focus-color-primary);
@@ -2409,3 +2429,52 @@ tr:hover > td > .reset-button {
.searchbar input {
inline-size: 100%;
}
/* Survey Popup */
.survey-blurb,
#survey-panel h3.onboarding-title {
text-align: center;
margin-inline: auto;
}
#survey-panel h3.onboarding-title {
max-inline-size: 100%;
font-family: var(--fontInterSemiBold);
line-height: 24px;
margin-block-end: 12px;
}
#survey-panel {
padding-block: 40px;
padding-inline: 0;
}
.survey-blurb {
margin-block-end: 16px;
margin-inline: 24px;
}
#survey-img {
block-size: 180px;
margin-block-end: 16px;
}
#survey-button {
padding-block: 4px;
padding-inline: 16px;
margin-block: 0 8px;
min-block-size: 32px;
}
.share-ctas.survey-back {
margin-inline: auto;
}
#survey-achievement-done-button:hover {
color: var(--button-bg-hover-color-primary);
}
#survey-achievement-done-button:active {
color: var(--button-bg-active-color-primary);
}
Binary file not shown.
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 23 KiB

-14
View File
@@ -1,14 +0,0 @@
module.exports = {
"extends": [
"../../.eslintrc.js"
],
"globals": {
"assignManager": true,
"badge": true,
"backgroundLogic": true,
"identityState": true,
"messageHandler": true,
"sync": true,
"Utils": true
}
};
+1 -2
View File
@@ -77,7 +77,6 @@ window.assignManager = {
this.setExempted(pageUrlorUrlKey, tabId);
});
}
// eslint-disable-next-line require-atomic-updates
data.identityMacAddonUUID =
await identityState.lookupMACaddonUUID(data.userContextId);
await this.area.set({
@@ -233,7 +232,7 @@ window.assignManager = {
try {
container = await browser.contextualIdentities
.get(backgroundLogic.cookieStoreId(siteSettings.userContextId));
} catch (e) {
} catch {
container = false;
}
+16 -1
View File
@@ -38,6 +38,7 @@ const backgroundLogic = {
browser.runtime.onInstalled.addListener((details) => {
this.updateTranslationInManifest();
this._undoDefault820SortTabsKeyboardShortcut(details);
this._removeSurveyAchievement();
});
browser.runtime.onStartup.addListener(this.updateTranslationInManifest);
},
@@ -68,6 +69,20 @@ const backgroundLogic = {
}
},
/**
* We left an achievement entry in storage during a user research study in
* version 8.3.1. This method removes that entry to prevent broken logic in
* the achievement views.
*/
async _removeSurveyAchievement() {
const achievementsStorage = await browser.storage.local.get({ achievements: [] });
const achievements = achievementsStorage.achievements;
const filtered = achievements.filter(a => a.name !== "survey");
if (filtered.length !== achievements.length) {
await browser.storage.local.set({achievements: filtered});
}
},
updateTranslationInManifest() {
for (let index = 0; index < 10; index++) {
const ajustedIndex = index + 1; // We want to start from 1 instead of 0 in the UI.
@@ -239,7 +254,7 @@ const backgroundLogic = {
containerState.isIsolated = "locked";
}
return await identityState.storageArea.set(cookieStoreId, containerState);
} catch (error) {
} catch {
// console.error(`No container: ${cookieStoreId}`);
}
},
+29 -1
View File
@@ -141,7 +141,6 @@ const messageHandler = {
if (!extensionInfo.permissions.includes("contextualIdentities")) {
throw new Error("Missing contextualIdentities permission");
}
// eslint-disable-next-line require-atomic-updates
externalExtensionAllowed[sender.id] = true;
}
let response;
@@ -258,6 +257,8 @@ const messageHandler = {
browser.browserAction.setBadgeBackgroundColor({color: "rgba(0,217,0,255)"});
browser.browserAction.setBadgeText({text: "NEW"});
}
this.maybePrepareSurveyAchievementOnUpdate(countOfContainerTabsOpened);
},
async onFocusChangedCallback(windowId) {
@@ -274,7 +275,34 @@ const messageHandler = {
}).catch((e) => {
throw e;
});
},
async maybePrepareSurveyAchievementOnUpdate(countOpened) {
if (countOpened < 10) {
return;
}
// Show the survey only for English locales (en or en-*).
const uiLang = browser.i18n.getUILanguage();
const lang = (uiLang || "").toLowerCase();
if (lang !== "en" && !lang.startsWith("en-")) {
return;
}
// Check if already scheduled in the past; if so, do not show again.
const achievementsStorage = await browser.storage.local.get({ achievements: [] });
const achievements = achievementsStorage.achievements;
const existing = achievements.find(a => a.name === "surveyFinal");
if (existing) {
return;
}
// Ensure the achievement exists and is pending.
achievements.push({ name: "surveyFinal", done: false });
browser.storage.local.set({ achievements });
browser.browserAction.setBadgeBackgroundColor({color: "rgba(0,217,0,255)"});
browser.browserAction.setBadgeText({text: "NEW"});
},
};
// Lets do this last as theme manager did a check before connecting before
+1 -1
View File
@@ -27,7 +27,7 @@ const MozillaVPN_Background = {
// invalid proxy connection.
this.port.onDisconnect.addListener(() => this.increaseIsolationKey());
} catch(e) {
} catch {
this._installed = false;
this._connected = false;
}
+2 -3
View File
@@ -338,7 +338,7 @@ async function reconcileIdentities(){
if (deletedCookieStoreId){
try{
await browser.contextualIdentities.remove(deletedCookieStoreId);
} catch (error) {
} catch {
// if the identity we are deleting is not there, that's fine.
console.error("Error deleting contextualIdentity", deletedCookieStoreId);
continue;
@@ -514,7 +514,7 @@ async function reconcileSiteAssignments() {
await setAssignmentWithUUID(assignedSite, urlKey);
continue;
}
} catch (error) {
} catch {
// this is probably old or incorrect site info in Sync
// skip and move on.
}
@@ -565,7 +565,6 @@ async function setAssignmentWithUUID(assignedSite, urlKey) {
const uuid = assignedSite.identityMacAddonUUID;
const cookieStoreId = await identityState.lookupCookieStoreId(uuid);
if (cookieStoreId) {
// eslint-disable-next-line require-atomic-updates
assignedSite.userContextId = cookieStoreId
.replace(/^firefox-container-/, "");
await assignManager.storageArea.set(
+2 -2
View File
@@ -88,7 +88,7 @@ const MozillaVPN = {
el.classList.remove("display-none");
});
this.setStatusIndicatorIcons(mozillaVpnInstalled);
} catch (e) {
} catch {
mozVpnLogotypes.forEach(el => {
el.style.display = "none";
});
@@ -139,7 +139,7 @@ const MozillaVPN = {
try {
const proxy = await proxifiedContainers.retrieve(identity.cookieStoreId);
proxies[identity.cookieStoreId] = proxy;
} catch (e) {
} catch {
proxies[identity.cookieStoreId] = {};
}
}
+58 -21
View File
@@ -31,6 +31,7 @@ const P_CONTAINER_INFO = "containerInfo";
const P_CONTAINER_EDIT = "containerEdit";
const P_CONTAINER_DELETE = "containerDelete";
const P_CONTAINERS_ACHIEVEMENT = "containersAchievement";
const P_SURVEY_ACHIEVEMENT = "surveyAchievement";
const P_CONTAINER_ASSIGNMENTS = "containerAssignments";
const P_CLEAR_CONTAINER_STORAGE = "clearContainerStorage";
@@ -137,19 +138,31 @@ const Logic = {
},
async showAchievementOrContainersListPanel() {
// Do we need to show an achievement panel?
let showAchievements = false;
const achievementsStorage = await browser.storage.local.get({ achievements: [] });
for (const achievement of achievementsStorage.achievements) {
if (!achievement.done) {
showAchievements = true;
}
}
if (showAchievements) {
const achievements = achievementsStorage.achievements;
let saveAchievements = false;
for (const achievement of achievements.filter(a => !a.done)) {
if (achievement.name === "manyContainersOpened") {
this.showPanel(P_CONTAINERS_ACHIEVEMENT);
} else {
this.showPanel(P_CONTAINERS_LIST);
return;
}
if (achievement.name === "surveyFinal") {
this.showPanel(P_SURVEY_ACHIEVEMENT);
return;
}
// We have found an unknown achievement. Let's mark it as done.
achievement.done = true;
saveAchievements = true;
}
if (saveAchievements) {
browser.storage.local.set({ achievements });
}
this.showPanel(P_CONTAINERS_LIST);
},
// In case the user wants to click multiple actions,
@@ -198,7 +211,7 @@ const Logic = {
// Handle old style rejection with null and also Promise.reject new style
try {
return await browser.contextualIdentities.get(cookieStoreId) || defaultContainer;
} catch (e) {
} catch {
return defaultContainer;
}
},
@@ -425,7 +438,7 @@ const Logic = {
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {
} catch {
window.close();
}
}
@@ -762,7 +775,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
method: "sortTabs"
});
window.close();
} catch (e) {
} catch {
window.close();
}
});
@@ -851,7 +864,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {
} catch {
window.close();
}
});
@@ -862,7 +875,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {
} catch {
window.close();
}
});
@@ -912,7 +925,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
incompatible = await browser.runtime.sendMessage({
method: "checkIncompatibleAddons"
});
} catch (e) {
} catch {
throw new Error("Could not check for incompatible add-ons.");
}
@@ -947,7 +960,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {
} catch {
window.close();
}
});
@@ -1009,7 +1022,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
cookieStoreId: Logic.currentCookieStoreId()
});
window.close();
} catch (e) {
} catch {
window.close();
}
});
@@ -1086,7 +1099,7 @@ Logic.registerPanel(OPEN_NEW_CONTAINER_PICKER, {
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {
} catch {
window.close();
}
};
@@ -1848,7 +1861,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
});
await Logic.refreshIdentities();
Logic.showPreviousPanel();
} catch (e) {
} catch {
Logic.showPreviousPanel();
}
},
@@ -2339,7 +2352,7 @@ Logic.registerPanel(P_CONTAINER_DELETE, {
await Logic.removeIdentity(Utils.userContextId(Logic.currentIdentity().cookieStoreId));
await Logic.refreshIdentities();
Logic.showPreviousPanel();
} catch (e) {
} catch {
Logic.showPreviousPanel();
}
});
@@ -2376,6 +2389,30 @@ Logic.registerPanel(P_CONTAINERS_ACHIEVEMENT, {
},
});
// P_SURVEY_ACHIEVEMENT: A simple survey view.
// ----------------------------------------------------------------------------
Logic.registerPanel(P_SURVEY_ACHIEVEMENT, {
panelSelector: ".survey-panel",
// This method is called when the object is registered.
initialize() {
Utils.addEnterHandler(document.querySelector("#survey-achievement-done-button"), async () => {
await Logic.setAchievementDone("surveyFinal");
Logic.showPanel(P_CONTAINERS_LIST);
});
Utils.addEnterHandler(document.querySelector("#survey-button"), async () => {
await Logic.setAchievementDone("surveyFinal");
window.close();
});
},
// This method is called when the panel is shown.
prepare() {
return Promise.resolve(null);
},
});
Logic.init();
window.addEventListener("resize", function () {
+5 -2
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Firefox Multi-Account Containers",
"version": "8.3.0",
"version": "8.3.5",
"incognito": "not_allowed",
"description": "__MSG_extensionDescription__",
"icons": {
@@ -33,7 +33,10 @@
"browser_specific_settings": {
"gecko": {
"id": "@testpilot-containers",
"strict_min_version": "91.1.0"
"strict_min_version": "91.1.0",
"data_collection_permissions": {
"required": ["none"]
}
}
},
"commands": {
+13
View File
@@ -106,6 +106,19 @@
<a href="#" id="achievement-done-button" class="onboarding-button keyboard-nav" data-i18n-message-id="done"></a>
</div>
<div class="panel survey-panel hide" id="survey-panel">
<img id="survey-img" alt="" src="/img/survey.svg" />
<h3 class="onboarding-title">Help Improve Containers</h3>
<p class="survey-blurb">Please take 5 minutes to share your experiences with the add-on! This will help us effectively prioritize improvements.</p>
<p class="survey-blurb">Learn more about the research here.</p>
<br/><p class="survey-blurb">Thank you for using Multi-Account Containers!</p>
<p class="share-ctas survey-back">
<a class="cta-link onboarding-button keyboard-nav" href="https://mozilla.qualtrics.com/jfe/form/SV_2aSQMGyfp2DFLtI" id="survey-button" target="_blank">Take Survey</a>
</p>
<a href="#" id="survey-achievement-done-button">Back</a>
</div>
<div class="panel menu-panel container-panel hide" id="container-panel">
<span class="popup-notification-card"></span>
<h3 class="title">Firefox Multi-Account Containers</h3>
-12
View File
@@ -1,12 +0,0 @@
module.exports = {
env: {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-restricted-globals": ["error", "browser"]
}
};
-1
View File
@@ -1,5 +1,4 @@
if (!process.listenerCount("unhandledRejection")) {
// eslint-disable-next-line no-console
process.on("unhandledRejection", r => console.log(r));
}