Tab-Session-Manager icon indicating copy to clipboard operation
Tab-Session-Manager copied to clipboard

(Firefox) Multi-account container support

Open Bert-Proesmans opened this issue 8 years ago • 30 comments

I'm using firefox containers to separate my workflows, like separate contexts. I think it provides a cleaner separation than using windows themselves. For example, a separate container for social media, open-source development, learning Haskell, shopping for a product, general leisure/googling. Browser windows could hold tabs belonging to different contexts.

The exact problem I have is that I'd like to close all container tabs when I'm done with them for that day while preserving each tab state. The next time I open firefox with the purpose of quickly googling something I don't have to wait until all tabs/windows from the (entire) previous browsing session are restored.

Describe the solution you'd like Is it possible to implement a 'firefox containers mode', which has the functionality to store and close a session of all tabs from a chosen container? Containers come with colors and icons so readability/session recognition could improve.

Describe alternatives you've considered I tried to create my own extension, container-king, but I'm not keen on working in javascript. I also couldn't quite figure out how to support elegant/intuitive interactions with the extension. I haven't found any other extension doing what I want ((ab)using containers as separate browser sessions). This extension looks nice and could probably provide that functionality.

Additional context As I said I tried to implement my own extension at first. Meta things like how to properly interact with users, package the extension and a decent code pipeline are learned as I go. I'd love to contribute to this extension, but I want to talk about the idea a bit more and get some guidance on best practices.

Edit: Does Chrome support personal containers, like firefox' multi-account containers, as well?

Bert-Proesmans avatar Sep 29 '18 12:09 Bert-Proesmans

I'll bump this thread, maybe I should have started a new thread I'm not sure.

But my reason is that I would like to try out the FF Multi-Container addon. Before I do so I thought it best to ask if that addon is compatible with TSM? Will TSM work and support the container addon? Or will I be asking for trouble with TSM?

I would like to try it, but not at the chance that I will have trouble with TSM. TSM seems to be working very well for me currently. I love it and do not want to damage it.

1RonRock avatar Dec 26 '18 13:12 1RonRock

Similar issue: https://github.com/sienori/Tab-Session-Manager/issues/365

RobertAb1 avatar Jan 04 '19 03:01 RobertAb1

The intention behind this issue is a feature request to add another option to the current "save" button:

  • Save all windows
  • Save current window only
  • Save current container

It's an alternative approach to storing sessions through grouping by container instead of a window. Actually closing all the saved tabs is a separate unresolved question.

Bert-Proesmans avatar Jan 07 '19 19:01 Bert-Proesmans

Tab session manager and Tree style tab are powerful extensions, enabling powerful workflows. I haven't thought deeply about how i'd like to use them lately, so this issue can be closed as being not focussed anymore.

Bert-Proesmans avatar Jan 07 '19 19:01 Bert-Proesmans

@Bert-Proesmans @1RonRock There is Bug 1512802 (https://bugzilla.mozilla.org/show_bug.cgi?id=1512802) which was closed today (but it was stated that this bug can be reopened). Please, describe there what Multi-account container support you need. Firefox developers could prepare proper APIs, so that session managers could use it.

RobertAb1 avatar Jan 09 '19 07:01 RobertAb1

Hi Robert, Your comment on the bug item (https://bugzilla.mozilla.org/show_bug.cgi?id=1512802) explains exactly my original intentions for this issue. The items are clearly worded, which is a skill I admire a lot. Hopefully, someone picks this up and attempts a PR.

Point 1 and 2 should be browser native behavior considering FF MA-containers is promoted as a first class feature (be it installable through the add-on system). The third point could be implemented by extensions if no native support is put on schedule. ^ At least in my opinion.

Bert-Proesmans avatar Jan 09 '19 23:01 Bert-Proesmans

@Bert-Proesmans I have updated my comment for Bug 1512802, mostly by adding point (4) and extending summary (similar to your comment). The proposal in the comment covers now broader set of functions.

Your description here is very nice too. You could just add your comment to Bug 1512802, maybe by combining what you wrote in your comment (2) + 2nd part of comment (4) + some background from comment (1) in this GitHub issue/post. Your comment would be very important and it could strengthen my proposal. Then, I will have the reason to reopen this bug.

RobertAb1 avatar Jan 10 '19 04:01 RobertAb1

Thank you for your feedback on Bug 1512802. I have also re-opened this bug.

Can you also vote on session management API bugs listed on this page?

RobertAb1 avatar Jan 11 '19 03:01 RobertAb1

@Bert-Proesmans https://bugzilla.mozilla.org/show_bug.cgi?id=1298912

RobertAb1 avatar Jan 11 '19 04:01 RobertAb1

I gladly help you bring related feature requests to the top of "most requested", but that Reddit post looks overwhelming. I'm not currently in a mood to read every issue and vote. (I did vote on the last referenced issue, though)

Bert-Proesmans avatar Jan 11 '19 15:01 Bert-Proesmans

Bugzilla bug/GitHub issue Consider supporting save/restore of individual containers within/from a session https://bugzilla.mozilla.org/show_bug.cgi?id=1512802#c7 https://bugzilla.mozilla.org/show_bug.cgi?id=1512802#c8

RobertAb1 avatar Jan 11 '19 20:01 RobertAb1

@Bert-Proesmans Shorter voting list (it contains the most important bugs taken from longer list): https://github.com/sienori/Tab-Session-Manager/issues/364 Maybe this list will be better for you to view at the beginning :)

RobertAb1 avatar Jan 11 '19 20:01 RobertAb1

I think that there is a small chance that Firefox will give us more advanced version of containers, since this could be complicated to introduce. Maybe we need to get simpler proposal, but at the same time also useful for us; something that could replace tab groups and complement API to hide the tabstrip.

Maybe current concept of sessions could be replaced by session groups and sessions? Session group could contain multiple sessions, and different sessions (containing one or more windows) could be saved and opened independently. Session could be marked by distinct color or icon (with short name) placed next to "List all tabs" (or in other place of windows belonging to particular session). Session would contain information about windows and tabs (and their state - like today), and session group would have information only about IDs of sessions being a part of it (no information about windows and tabs). Session would be corresponding to today's definition of session (with small changes), and session group would be completely new concept. Both session groups and sessions could be saved and restored automatically by Session Restore or session manager extension after Firefox restart; and both session groups, sessions and windows could be saved manually by user.

And containers could operate as it is now; it would be user choice if (s)he wants to have tabs from single container included in single session or not.

What is your take on this idea?

(EDITED)

RobertAb1 avatar Jan 14 '19 23:01 RobertAb1

I'm still considering the contents of a personalized container to be a sub-session of the "browser session". My view on, what you call, sessions is very narrow in that regard. Sessions are sort of alive, you only work with the latest stored state, just like the "browser session" is implemented right now. There is room for extensions to snapshot/manage earlier state of sessions, for example.

Your (original) comment reads like you're thinking about merging the session idea with browser windows. I disagree with that direction since this practically mimics built-in user profiles for the browser. Sessions should only contain tab URL, history, page state, cache, .. (= tab data). The "browser session" keeps track of which tab was located in which window at which position (= tab metadata). The session functionality stays focussed and highly flexible this way, in my opinion.

I'm unsure if i can contribute meaningfully with UX design of this feature due to lack of experience. I don't how other browsers tackled similar issues or have a general idea about what would work best.

I see you edited your post with a different explanation (from first glance). I'll be coming back to this issue tomorrow (CET here) and respond to these changes.

EDIT Changed terminology

Bert-Proesmans avatar Jan 14 '19 23:01 Bert-Proesmans

I see you edited your post with a different explanation (from first glance). I'll be coming back to this issue tomorrow (CET here) and respond to these changes.

The original names I used were: sessions and subsessions New terminology: session groups and sessions

RobertAb1 avatar Jan 14 '19 23:01 RobertAb1

@Bert-Proesmans The relation between session and tab would be the same like now. Just additional level above session called session group. Session group would something lower than profile (for users who do not want to use profiles). Different profiles can have different set of extensions and browser settings, but also opening different Firefox profiles at the same time is using a lot of resources.

RobertAb1 avatar Jan 14 '19 23:01 RobertAb1

You reworded your original comment and a first glance it looked to be a different proposition, but it's basically the same as before with a new keyword attached on top of it.

For starters, I don't understand which workflows can be enabled by supporting session groups. The way I see it, FF containers already perform user profile emulation by isolating history and cached data (at least in theory). Which workflows would an additional group level enable? Please work out an hiërarchical tree of sessions- and groups as an example, I'll understand it better that way. My position on this is that there should only be one session group, which is rooted at the profile level aka the current "browser session".

I feel like I'm going to repeat myself since I'm interpreting the updated text just like the old one so I'll try to keep this response very short.

Browsing sessions are currently groupable by the window through the use of extensions. Browsing sessions should also be groupable by privacy horizon. This could abstract into a 'session'. A user ideally becomes free to construct a new session from the result of whatever grouping condition he wants. No grouping by window should happen without the user allowing it, because it's perfectly possible for tabs to be scattered around multiple windows which each contain tabs from other sessions. The user should get the ability to one-click open/close sessions, meaning all tabs belonging to that session will be opened/closed while their state is preserved. We both agree the last point is a necessity.

Bert-Proesmans avatar Jan 15 '19 20:01 Bert-Proesmans

(UPDATED PROPOSAL)

I think that there is a small chance that Firefox will give us more advanced version of containers, since this could be complicated to introduce. Maybe we need to get simpler proposal, but at the same time also useful for us; something that could replace tab groups and complement API to hide the tabstrip.

(1) Current concept of sessions could be replaced by session groups and sessions. Session group could contain multiple sessions. Session (containing one or more browser windows) would contain information about windows and tabs (and their state - like today), and session group would have information only about IDs of sessions being a part of it (no information about windows and tabs). Session would be corresponding to today's definition of session (with small changes), and session group would be completely new concept. Firefox or its extension should remember names (given by user) of opened session group and sessions (and use these names during automatic savings of session group or session together with information about time of saving; or suggest these names during manual saving of session group or session).

Different sessions could be saved and opened independently from session groups. Both session groups and sessions could be saved and restored automatically by Session Restore or session manager extension after Firefox restart (multiple previous saved versions should be remember, not just the last version). And both session groups and sessions could be saved manually by user; manual saving could be done for single session group or session at the time. Finally and most importantly, sessions could be added or removed from current session group; and the names of opened session group and sessions should be remembered by Firefox/extension, and these names should be suggested by Firefox/its extension during manual saving of session group or session.

(2) Firefox windows belonging to particular session could be marked by distinct color or icon (with short name) placed next to "List all tabs" (or in other place of windows belonging to particular session), and taskbar buttons corresponding to Firefox windows from the same session could be marked by the same color.

(3) And containers could operate as it is now with multiple containers in single session. In addition, it should be possible to assign different sessions to separate containers, and to make all tabs opened in particular session a part of specific container.

RobertAb1 avatar Jan 23 '19 08:01 RobertAb1

Simple example of new workflow possible after session group introduction is shown below and it consists the following actions:

  • adding sessions with multiple windows,
  • adding new windows to particular session,
  • closing entire sessions,
  • closing/saving session groups, and
  • opening other session groups.

group1[A(A1,A2,A3)] group1[A(A1,A2,A3),B(B1),C(C1,C2,C3)] group1[A(A1,A2,A3),B(B1),C(C1,C2,C3),D(D1,D2)] group1[A(A1,A2,A3),B(B1),C(C1,C2,C3,C4,C5),D(D1,D2)] group1[C(C1,C2,C3,C4,C5)] group2[E(E1),F(F1,F2)] group2[E(E1),F(F1,F2),D(D1,D2)]

Firefox should remember which windows belongs to particular session, and names of session group and sessions. Closing of chosen session should cause also closing of windows being a part of particular session.

Description: group1[], group2[], ... - session groups A(), B(), C(), D(), ... - are example sessions which could correspond to: A - work, B - things to do; C - interests; D - other activities A1, A2, A3 are example windows in session A

RobertAb1 avatar Jan 23 '19 08:01 RobertAb1

It's hard to effectively follow what exactly has changed in your edited comments. 10 days ago is also the culprit of me not being able to remember previous details.

I'm personally on the fence about your latest proposal and example. The feature (do you consider the whole as one or more features?) is too complex, judging by your description. What would be use cases of having such flexible session groups? Since it's new, the concept on itself introduces a new mental burden and implementation complexity. Use cases should be strongly defined and well-grounded because otherwise, you risk annoying your user at best.

Bert-Proesmans avatar Jan 23 '19 19:01 Bert-Proesmans