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

Commit

Permalink
Update PR assuming that the tor tab partition is 'persist:tor'
Browse files Browse the repository at this point in the history
  • Loading branch information
diracdeltas committed Feb 1, 2018
1 parent abece9d commit 8e7aeeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brave/browser/brave_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void BraveContentBrowserClient::GetStoragePartitionConfigForSite(
BraveBrowserContext* profile =
BraveBrowserContext::FromBrowserContext(browser_context);
if (profile->IsTorContext()) {
*in_memory = profile->IsOffTheRecord();
*in_memory = true;
*partition_domain = site.host();
}

Expand Down
3 changes: 2 additions & 1 deletion brave/browser/guest_view/tab_view/tab_view_guest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ void TabViewGuest::CreateWebContents(
if (partition.compare(0, session_tab_prefix.length(),
session_tab_prefix) == 0 ||
partition.compare(0, private_tab_prefix.length(),
private_tab_prefix) == 0) {
private_tab_prefix) == 0 ||
partition === "persist:tor") {
partition_options.SetString("parent_partition", "");
}
}
Expand Down

0 comments on commit 8e7aeeb

Please sign in to comment.