Bug 1108547 - Part 1: Inherit the correct private browsing status on new windows created for targeted navigations; r=jdm
This commit is contained in:
@@ -9635,9 +9635,13 @@ nsDocShell::InternalLoad(nsIURI * aURI,
|
||||
nsAutoCString spec;
|
||||
if (aURI)
|
||||
aURI->GetSpec(spec);
|
||||
nsAutoString features;
|
||||
if (mInPrivateBrowsing) {
|
||||
features.AssignLiteral("private");
|
||||
}
|
||||
rv = win->OpenNoNavigate(NS_ConvertUTF8toUTF16(spec),
|
||||
name, // window name
|
||||
EmptyString(), // Features
|
||||
features,
|
||||
getter_AddRefs(newWin));
|
||||
|
||||
// In some cases the Open call doesn't actually result in a new
|
||||
|
||||
Reference in New Issue
Block a user