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

Commit 0aa85d0

Browse files
authored
Merge pull request #358 from brave/fix/private-session-tabs
Set parent_partition to '' for private session tabs
2 parents dcd1806 + 4b38d1d commit 0aa85d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

brave/browser/guest_view/tab_view/tab_view_guest.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,11 @@ void TabViewGuest::CreateWebContents(
254254
partition_options.SetString("parent_partition", parent_partition);
255255
} else {
256256
std::string session_tab_prefix = "persist:partition-";
257+
std::string private_tab_prefix = "partition-";
257258
if (partition.compare(0, session_tab_prefix.length(),
258-
session_tab_prefix) == 0) {
259+
session_tab_prefix) == 0 ||
260+
partition.compare(0, private_tab_prefix.length(),
261+
private_tab_prefix) == 0) {
259262
partition_options.SetString("parent_partition", "");
260263
}
261264
}

0 commit comments

Comments
 (0)