mozilla / multi-account-containers

Firefox Multi-Account Containers lets you keep parts of your online life separated into color-coded tabs that preserve your privacy. Cookies are separated by container, allowing you to use the web with multiple identities or accounts simultaneously.
https://addons.mozilla.org/firefox/addon/multi-account-containers/
Mozilla Public License 2.0
2.73k stars 343 forks source link

Each hidden container is shown twice when choosing to show them #791

Open SoftVision-EmilPasca opened 7 years ago

SoftVision-EmilPasca commented 7 years ago

[Additional Notes]:

[Affected versions]:

[Affected Platforms]:

[Prerequisites]:

[Steps to reproduce]:

  1. Open the browser with the profile from prerequisites.
  2. Click on the "Containers" toolbar button.
  3. Open two "Personal" tabs and navigate to different websites.
  4. Click on the "Containers" toolbar button.
  5. Click on the "View Personal container" and choose the "Hide this container" option.
  6. Click on the "Containers" toolbar button.
  7. Click on the "View Personal container" and choose the "Show this container" option.

[Expected result]:

[Actual result]:

[Notes]

┆Issue is synchronized with this Jira Task

jonathanKingston commented 7 years ago

This is fixed by #793 with this fix: https://github.com/jonathanKingston/testpilot-containers/commit/3d69c344a9a0303f29b70c3e43820f4cbaa2f271

SoftVision-EmilPasca commented 7 years ago

This issue is still reproducible on the latest latest Nightly (57.0a1-20170913220121) with Firefox Multi-Account Containers version (4.0.2 built on 09/14/2017) when having hidden tabs and choosing the "Move tabs to new window" option from the "Containers" panel.

This is not reproducible on Windows 10 x64 and Mac OS 10.12 with Firefox Release (53.0.3).

[Regression] Last good revision: 75cd3397298ad5c0f02129a87f465059018a9f63 First bad revision: ec6edd4fec8f62db57c1f075d1d3b536c74af5f8 Pushlog: https://goo.gl/FevcDz

[Notes]

grahamperrin commented 7 years ago

Anecdotally (I don't want to pollute this issue) a few hours ago, during a string of tests with Multi-Account Containers 4.0.3 with Firefox 56.0 (64-bit) on FreeBSD-CURRENT with KDE Plasma 5 beta 5.10.95, I was surprised by some duplication. As far as I recall:

Unfortunately I can't find any screenshot or recording of the incident, my bad, but I'll keep this issue in mind.

For what it's worth: Firefox opening too many windows at start or session restoration time, occasionally opening three copies of a tab in response to a single Control-Click - Firefox Development - Mozilla Discourse … the sprawling screen recording there was of a heavily extended profile. Quite unlike the very clean profiles with which I tested a few hours ago.

falolaf commented 7 years ago

I have been experimenting with my own fork of the addon as I wanted to disable the opening of all hidden tabs in a container when I open a new tab in the same container. I found out that when this.unhideContainer(tab.cookieStoreId) in the bellow addListener code is commented out the desired behavior is met. I also found out that I do not get any duplicated tabs when doing "Move tabs to new window" with this same change. So it seems this listener thingy is doing something fishy.

browser.tabs.onCreated.addListener((tab) => {
      if (tab.incognito) {
        badge.disableAddon(tab.id);
      }
      // lets remember the last tab created so we can close it if it looks like a redirect
      this.lastCreatedTab = tab;
      if (tab.cookieStoreId) {
        /* This line causes all hidden tabs to be opened if a new tab in a container is created.
           It also seems to duplicate tabs when doing "Move tabs to new window". */
        //this.unhideContainer(tab.cookieStoreId);
      }
      setTimeout(() => {
        this.lastCreatedTab = null;
      }, this.LAST_CREATED_TAB_TIMER);
});
Progdrasil commented 3 years ago

i'm getting this issue as well, albeit sporadically. It happens when the container "forgets" its saved tabs, then when it remembers them it duplicates them on every re-opening of the container, regardless if i delete them.