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

Commit

Permalink
Merge pull request #358 from brave/fix/private-session-tabs
Browse files Browse the repository at this point in the history
Set parent_partition to '' for private session tabs
  • Loading branch information
bridiver authored Oct 25, 2017
2 parents dcd1806 + 4b38d1d commit 0aa85d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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 @@ -254,8 +254,11 @@ void TabViewGuest::CreateWebContents(
partition_options.SetString("parent_partition", parent_partition);
} else {
std::string session_tab_prefix = "persist:partition-";
std::string private_tab_prefix = "partition-";
if (partition.compare(0, session_tab_prefix.length(),
session_tab_prefix) == 0) {
session_tab_prefix) == 0 ||
partition.compare(0, private_tab_prefix.length(),
private_tab_prefix) == 0) {
partition_options.SetString("parent_partition", "");
}
}
Expand Down

0 comments on commit 0aa85d0

Please sign in to comment.