multi-account-containers icon indicating copy to clipboard operation
multi-account-containers copied to clipboard

Implement hide containers API functionality

Open jonathanKingston opened this issue 9 years ago • 7 comments

Clicking the hide and show buttons in the containers drop down menu should use a web extensions (like?) API which shows and hides all of the tabs in the cookie jar we are wanting to hide.

We may want this as part of the native patches into Firefox however for now I think it makes sense to monkey patch this into the WebExtension API for this addon to use.

jonathanKingston avatar Dec 15 '16 19:12 jonathanKingston

So there's no existing native API for hiding all tabs for a specific container/jar?

groovecoder avatar Dec 15 '16 19:12 groovecoder

I think we need a way to actually hide tabs by id something like:

browser.tabs.hide([1,2,3]);
browser.tabs.show([1,2,3]);

We have a way internally of hiding tabs (I think we use this for prerendering and some other functionality?) and I think we should try and expose this somehow. Getting the list of per container ids can come from the other APIs proposed.

jonathanKingston avatar Dec 15 '16 23:12 jonathanKingston

We would also have to decide what would happen if I hide personal container tabs then open a new personal container.

  • Would it reject opening it?
  • Keep only this new one open
  • Show all personal containers

/cc @johngruen

jonathanKingston avatar Dec 15 '16 23:12 jonathanKingston

My hunch is that all personal container tabs should open, but i will talk to UX

johngruen avatar Jan 05 '17 21:01 johngruen

@johngruen @jonathanKingston I am thinking the same way what John suggested. Let's show all personal containers when users want to open a new personal container.

ChenMorpheus avatar Jan 06 '17 08:01 ChenMorpheus

I submitted a patch.

bakulf avatar Jan 09 '17 08:01 bakulf

This is fixed.

bakulf avatar Jan 09 '17 18:01 bakulf