Commit Graph

95 Commits

Author SHA1 Message Date
Logan Rosen bd7e33b11e Upgrade to eslint v9 2025-09-20 17:09:54 -04:00
Rob Wu 60a6666222 Avoid logspam: "Cannot find menu item with id ..."
The extension frequently tries to remove context menus that do not
exists, which results in errors like:

> Error: Cannot find menu item with id firefox-container-1

because starting from Firefox 136, the contextMenus.remove method
rejects if the menu item does not exist. To avoid logspam, catch it.

References:

- https://bugzilla.mozilla.org/show_bug.cgi?id=1688743
- https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/136#changes_for_add-on_developers
2025-04-30 00:51:11 +02:00
Stephen Thompson ab3e1ce4d8 Address code review from @Rob--W 2025-04-23 14:31:13 -04:00
Stephen Thompson b6a1bff9e8 Fix #2747: open/reopen container tabs in tab groups when appropriate
Firefox 137 introduced tab groups. Tab group web extension support is rolling out in Firefox 138 and later. Creating a new tab after the last tab in a tab group can inadvertently create the new tab outside of the tab group.

When a user opens a new tab that should be in a container, this patch will make sure that the new tab resides in the same tab group as the original tab.
2025-04-21 23:45:11 -04:00
Cimbali 6fcb828e1d Fix error in function name 2024-09-26 13:10:25 +01:00
Cimbali aa9bb41305 Do not resolve promise twice 2024-09-26 13:10:25 +01:00
luke crouch a53eb64c03 Merge pull request #2654 from mozilla/feat-#303
#303: Reset cookies in site manager
2024-08-28 11:26:57 -05:00
Rafee c644a60e46 feat #303: ask for browsing data permission dynamically 2024-08-27 17:06:07 -04:00
Rafee 2cd38299e2 feat #303: confirmation page for clearing container storage, added destructive colors 2024-08-27 15:34:06 -04:00
Rafee 6bde0a78d7 fix #2603: remember choice when choosing 'previous' (deny) container option 2024-08-23 12:57:50 -04:00
Rafee 3debe8a36f feat #303: change individual cookie removal to browsingData api 2024-08-20 15:04:25 -04:00
Rafee 606e08d2b7 feat #303: Container storage deletion and confirmation popup 2024-08-20 13:47:36 -04:00
Rafee ffbb740445 feat #303: reset cookies in site manager 2024-08-01 18:13:58 -04:00
Rafee cd343ab8c3 fix #2603: remember choice to always open in default containers 2024-07-23 11:42:01 -04:00
Andrea Marchesini f94c00b68a Missing translation for a contextmenu item 2024-04-17 14:59:56 +02:00
Danny Colin f85d75188a Fix missing i18n strings in the UI
This patch fix all the missing i18n strings in the UI. It also
standardize the main title to "Firefox Multi-Account Containers"
everywhere we use it in the addon.
2023-06-19 19:41:10 -04:00
stoically 76d5b36563 Remove identityState when deleting containers
Fixes #1140
2022-06-23 01:46:02 +02:00
eladyn 0b869a139a improve proxy type matching
Co-authored-by: nekno <nekno@users.noreply.github.com>
2022-04-21 14:09:38 +02:00
eladyn 0ef50dd2f0 enable proxyDNS only for supported proxies (SOCKS4/5) 2022-04-19 16:21:56 +02:00
luke crouch a3e978338a return single ProxyInfo object when advanced proxy 2022-02-09 14:47:59 -06:00
luke crouch 53e9d24d40 fix #2248: proxy DNS too 2022-01-01 11:01:41 -06:00
Andrea Marchesini c146a0bd11 Move the permission observers in the background scripts 2021-12-07 10:22:49 -06:00
Lesley Norton 1b165aebb5 Handle proxy and nativeMessaging permission disabling + enabling 2021-12-07 10:22:49 -06:00
Andrea Marchesini 8bde28a4ac Use an empty object for no-proxy requests 2021-11-29 16:21:36 +01:00
Lesley Norton 1d608f599b Merge branch 'master' into MAC-x-MozillaVPN 2021-10-25 10:25:31 -05:00
Andrea Marchesini e830a5bcd8 Merge pull request #1757 from kafji/kfj/fix-sync-hog
Fix sync resource hog
2021-10-25 16:59:59 +02:00
Andrea Marchesini 3572bebbd9 Remove DEFAULT_PROXY 2021-10-22 17:32:04 +02:00
Andrea Marchesini 37ed2455eb Network key isolation when the VPN changes state 2021-10-22 17:25:25 +02:00
Andrea Marchesini ec933cf730 A few changes in the proxified-containers object 2021-10-22 16:46:40 +02:00
Lesley Norton 1c0f2d8c5c MozillaVPN Integration 2021-10-20 12:52:41 -05:00
luke crouch 8a8f5572fc Merge branch 'master' into proxy-support 2021-09-28 17:07:21 -05:00
Carlos Marin 4e4ed390e0 Replace deprecated method
Close #2047
2021-05-18 14:36:29 -03:00
luke crouch 63996ce416 Merge branch 'master' into proxy-support 2020-11-11 17:14:07 -06:00
Moonloard 46d76dfaa3 new option to replace current tab when a assigned domain is opened 2020-07-27 22:12:49 +02:00
Kafji f4a087d0ed Fix sync resource hog
Hypothesis:
On receiving onChanged event of browser.storage.sync, sync will try to
_merge_ the container data and backup the merged data. One of the merging
process is called reconcileSiteAssignments in which sync will remove
assigned site form the delete site list. On each removal sync will tell
assignManager, the one who hold container data locally, to remove it as
well. In turn the assignManager will remove *and then* tell sync to
backup the data. This causes the backup process in sync to be invoked
multiple times, one from the sync process and one for each of removed
assigned site list. To make matters worse, the backup from removal of
assigned site list will run in parallel from each others.

This might fixes #1691.
2020-06-01 08:22:28 +07:00
Kendall Werts 7f91096311 Removed options from new container menu. Tweaked new container menu to remove
dupes from opening it twice.

Added focus highlighting for keyboard navigation
2020-02-28 15:47:43 -06:00
Kendall Werts ef66bee929 Implemented site isolation
Added feature to isolate (lock) assigned sites: When you are in
a container with site isolation enabled, navigating to a site
outside of the assignments will open that site in a new default
container tab.

Co-authored-by: Francis McKenzie <francis.mckenzie@gmail.com>
2020-02-28 15:47:43 -06:00
Kendall Werts 8ef5cbd81b Fixed Assignement Toast on page.
Now opens in the newly opened tab (after it has been reopened
in the correct container). It also does not provide a toast
when removing sites from the edit assignments panel, becuase
user will most likely not be on that site when editing the
panel, so it has been throwing an error. Error should go away.
2020-02-28 15:47:43 -06:00
Kendall Werts 9d151f0033 working on info panel 2020-02-28 15:47:43 -06:00
Kendall Werts 1870ce08bc Page action assigns site to a container and simultaneously reopens site in container. 2020-02-28 15:47:43 -06:00
stoically 419be23c9c Add sync tests to mocha suite 2020-01-28 11:33:20 +01:00
Kendall Werts 0447e54b1c review fedback 2020-01-23 13:47:56 -06:00
Kendall Werts 85c403bef5 made some suggested changes 2020-01-23 13:47:45 -06:00
Kendall Werts 3aa2902cde added on/off switch and expiration date on instanceKeys in sync
on/off is in settings.
when instanceKey date is 30 days old, it is deleted

fixed bug
2020-01-22 22:46:36 -06:00
Kendall Werts d7b66eca52 added key to sync for each install of MAC.
Keeps a list of installed identities and site assignments of reach MAC install
2020-01-22 10:57:27 -06:00
Kendall Werts 60bfdffdd6 fixed race condition while upgrading containers and site assignments. 2020-01-15 16:54:24 -06:00
Kendall Werts a7d3d6d848 fixed linting 2020-01-14 11:21:19 -06:00
Kendall Werts 26028cac20 added UUIDs of containers to site assignments 2020-01-14 11:21:09 -06:00
Kendall Werts 5ae7a395a1 added some checks on sync and some error handling for bad site assignment info 2020-01-14 11:21:00 -06:00
Kendall Werts 9de6df6157 fixed bug that was showing all assigned site in the create new container panel 2020-01-14 11:20:51 -06:00