Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

set partition_domain for Tor browsing context #471

Closed
wants to merge 2 commits into from

Conversation

diracdeltas
Copy link
Member

Fix #468

I haven't finished building this yet, just wanted to open a PR to get thoughts on whether this is the correct path

@@ -271,6 +271,10 @@ bool BraveBrowserContext::HasParentContext() {
return has_parent_;
}

bool BraveBrowserContext::IsTorContext() {
return partition() == "tor";
Copy link
Member Author

@diracdeltas diracdeltas Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is based on the fact that @riastradh-brave used tor as the partition name here: riastradh-brave/browser-laptop@0ec51b7#diff-2be38b3d97f35cd818780bac4be979c4R97

post-MVP, we will probably also have a persist:tor partition for adding Tor as a shields switch in regular tabs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can't have an in-memory partition that isn't associated with a persistent partition and we can't associate more than one incognito context with a Profile. The work @darkdh is doing should replace this anyway

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darkdh are you also doing #468? if so 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @bridiver meant #464 option 5 which is what I'm working on

Copy link
Member Author

@diracdeltas diracdeltas Feb 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if i'm not mistaken this would also return true for persist:tor, so it would work if tor tabs were persistent session tabs (which i'll edit the browser-laptop branch to do)

@diracdeltas
Copy link
Member Author

i have updated the PR assuming that Tor tabs will be implemented as regular session tabs and an in_memory storage partition. let me know if this looks vaguely ok

@diracdeltas diracdeltas force-pushed the tor/storage-partitions branch from 8e7aeeb to fcfe5ce Compare February 1, 2018 04:33
@diracdeltas
Copy link
Member Author

closing since this will be covered by @darkdh's PR

@diracdeltas diracdeltas closed this Feb 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants