Make History aware of userContextId
Categories
(Core :: DOM: Security, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fix-optional |
People
(Reporter: tanvi, Unassigned)
References
(Depends on 3 open bugs, Blocks 6 open bugs)
Details
(Whiteboard: [userContextId][domsecurity-backlog2][OA])
Attachments
(1 file, 6 obsolete files)
|
40.33 KB,
patch
|
mak
:
feedback+
|
Details | Diff | Splinter Review |
| Reporter | ||
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
| Reporter | ||
Comment 4•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
| Reporter | ||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
| Reporter | ||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Updated•9 years ago
|
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Updated•9 years ago
|
Comment 27•9 years ago
|
||
Updated•9 years ago
|
Comment 28•9 years ago
|
||
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Updated•9 years ago
|
Comment 31•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Updated•9 years ago
|
Comment 38•9 years ago
|
||
Comment 39•9 years ago
|
||
Comment 40•9 years ago
|
||
Comment 41•9 years ago
|
||
Updated•9 years ago
|
Comment 42•9 years ago
|
||
Comment 43•9 years ago
|
||
Comment 44•9 years ago
|
||
Comment 45•9 years ago
|
||
Comment 46•9 years ago
|
||
Comment 47•8 years ago
|
||
Comment 48•8 years ago
|
||
Comment 49•8 years ago
|
||
Comment 50•8 years ago
|
||
Comment 51•8 years ago
|
||
Comment 52•8 years ago
|
||
Updated•7 years ago
|
Comment 54•7 years ago
|
||
Comment 55•7 years ago
|
||
| Comment hidden (advocacy) |
Comment 57•7 years ago
|
||
Comment 58•7 years ago
|
||
Comment 59•6 years ago
|
||
Is there something we can do to advance this?
Comment 60•6 years ago
|
||
(In reply to oransterf from comment #59)
Is there something we can do to advance this?
Who is "we" here? To move this forward, we need to come up with a plan which takes all the above comments into account. The comments above aren't all that easy to follow, so something concrete might be to start a document which attempts to list the challenges in a sane, structured way, which can then be followed by an implementation plan (which is likely to require work on all of our sync implementations)
Updated•6 years ago
|
Comment 61•6 years ago
|
||
If implemented there should definitely be some sort of optional flag/API for native containers and extensions using containers.
It isn't always desirable to have separate history for containers.
Comment 62•4 years ago
|
||
Is there any chance of this happening? The histories being mixed makes the container feature useless to me, I still need to just create separate firefox accounts and keep separate shortcuts on my desktop for each one.
Comment 63•4 years ago
|
||
::russianspy1234 in #62 said:
Is there any chance of this happening? The histories being mixed makes the container feature useless to me, I still need to just create separate [F]irefox accounts and keep separate shortcuts on my desktop for each one.
This is the whole point of the delay: some people prefer common history (you can set the URL to open is a specific container now, very cool for some sites, but not helpful for, e.g., multiple GMail accounts), others would rather split history and bookmarks per container. This helps keeping a history easier searchable from the Everything bar (I can hardly call it the "Address bar" anymore, though I'm unaware of any other name), but has it's own inconveniences, as when you'd forget which of the 10 container that important site you visited from.
My feeling is it should be a per-container setting, best of all if available through the about:config page: either common or own history for a given container. There will always be users who would claim the containers (or whole Firefox) "useless." While logically logically true, since the life, the Universe and everything has no ultimate purpose (the latter category probably includes even Firefox), this hints that, if implemented, this is not going to be a simple feature. If you switch a container from own to the common history, what should happen to its own history? Erase? Join into the common? "Make it an option" is not an answer to this questions, or it risks ending up with the options all the way down.
I'm amazed how split the opinions are. I didn't grok the sheer depth of the problem before reading the comments in this issue.
::D Nupy in #61 said:
If implemented there should definitely be some sort of optional flag/API for native containers and extensions using containers.
And this is an excellent point!
Which shows, incidentally, that the overall consistent design of this feature will quickly snowball out of proportion.
Comment 64•4 years ago
|
||
I'd argue that the "own history" should be kept separately and still associated with that container so if you switch from own to common, it loses access to own, but can get it back if you switch it to own again, but that's just me. I think allowing containers to be associated with a specific firefox account would allow the functionality of separate histories while keeping it out of the way of people who don't want it.
Comment 65•4 years ago
|
||
This is the whole point of the delay: some people prefer common history, others would rather split history and bookmarks per container.
We need the simple additional column "userContextId" in History database, that will save current container id together with history item!
Having this field, we will can solve the both tasks, suitable for all people:
- Showing common history, like now, via excluding filtering by "userContextId" field.
- Split/filter history records per container, including filter by needed "userContextId" field value.
Comment 66•4 years ago
|
||
A workaround would be using about:profiles, creating a new profile for the separate data that you'd like to keep, and clicking "Launch profile in new browser" whenever you want to use it. An issue could be that it doesn't take advantage of anything shared, including Firefox overhead (memory, CPU), addons, browser settings, saved passwords, etc. I'm going to be going this route just because of this bug.
Comment 67•4 years ago
|
||
(In reply to Daniel from comment #66)
A workaround would be using about:profiles, creating a new profile for the separate data that you'd like to keep, and clicking "Launch profile in new browser" whenever you want to use it. An issue could be that it doesn't take advantage of anything shared, including Firefox overhead (memory, CPU), addons, browser settings, saved passwords, etc. I'm going to be going this route just because of this bug.
I believe you could choose to use Firefox Sync (i.e. a Mozilla account) to synchronize bookmarks, settings, addons, etc, but preferentially choose to not sync history, making this a somewhat more usable workaround, to a degree.
However, system resources (memory/CPU) can't be shared between Firefox instances, and this most certainly prevents it from being a viable option for those running lower/medium-end devices! So I still think it's important to consider a generally useful solution integrated with container tabs. Comment #65 from Murz seems like a worthwhile and fairly simple fix, imo!
Comment 68•4 years ago
|
||
I this is implemented, will the history entries be deleted when the container is deleted?
Comment 69•4 years ago
|
||
If Mozilla developers implement this feature, it makes it possible to implement rules to delete or keep container history.
Comment 70•4 years ago
|
||
It'd be really inconvenient for me personally if history is deleted when the container is deleted.
Comment 71•4 years ago
|
||
Associating containers with profiles seems like the perfect solution. I currently have two firefox shortcuts on my desktop that autoload two different profiles, so the history is separate in addition to separate logins to various sites and all. It would be nice if I could just do a new tab and have it be the correct profile.
Comment 72•3 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:ckerschb, since the bug has recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 73•3 years ago
|
||
(In reply to sorrow from comment #70)
It'd be really inconvenient for me personally if history is deleted when the container is deleted.
I can see both use cases. Deleting the history make sense to me and would allow, for example, the "New Private Window" feature to be implemented via a temporary container. But I could also see users wanting to preserve history when deleting containers they manually created. So it probably makes sense for containers to support either and then allow the user facing extension (Multi-Account Containers, Facebook containers, etc) to decide what should happen (including possibly prompting the user).
(In reply to russianspy1234 from comment #71)
Associating containers with profiles seems like the perfect solution. I currently have two firefox shortcuts on my desktop that autoload two different profiles, so the history is separate in addition to separate logins to various sites and all. It would be nice if I could just do a new tab and have it be the correct profile.
That sounds like a completely different feature than containers. Containers live within a profile and manage some information (cookies, local storage, cache, etc) independently of other containers. What you're describing is more of an alternative to containers (open a different browser profile in a tab).
Comment 74•3 years ago
|
||
(In reply to Mark Hammond [:markh] [:mhammond] from comment #25)
While we have bug 1288858 for the longer term, we should consider the
short-term story with Sync. ISTM the safest thing to do is to have desktop
Sync ignore records with the new column - otherwise we will blindly sync
them to mobile devices as "normal" history, which feels wrong. I don't think
this would be difficult. We can later work out how to coordinate the
different Sync implementations having a sane story. Tanvi, what do you think?
It seems that the question has probably answered itself by now.
We're not syncing custom containers (for now) and have no immediate plan to do so.
As Mark said many years ago, in comment 60:
This bug is in the backlog and requires significant amount of work.
We understand that it would be useful for certain use cases around containers, but it's definitely not a good first bug.
To all of our users commenting and watching this bug: I suggest you also take a look at [Total Cookie Protection][https://blog.mozilla.org/security/2021/02/23/total-cookie-protection/), which is built into "Strict Mode" of our Tracking Protection. It might be just what you need.
Also, let's please move this discussion. I am freddyb on matrix and in the #security channel. Our Comment Etiquette suggests that we do not supply any further comments about when or how this will be implemented. We welcome all discussions on matrix though!
Updated•3 years ago
|
Comment 75•1 year ago
|
||
Please add to the "Blocks" field:
Updated•1 year ago
|
Description
•