Bug 1322576 - [1.2] Add tracking protection attribute to nsILoadContext to allow for overriding of the global preference setting for individual DocShells. r=smaug
This commit is contained in:
@@ -61,6 +61,7 @@ SerializedLoadContext::Init(nsILoadContext* aLoadContext)
|
||||
mIsPrivateBitValid = true;
|
||||
aLoadContext->GetIsContent(&mIsContent);
|
||||
aLoadContext->GetUseRemoteTabs(&mUseRemoteTabs);
|
||||
aLoadContext->GetUseTrackingProtection(&mUseTrackingProtection);
|
||||
if (!aLoadContext->GetOriginAttributes(mOriginAttributes)) {
|
||||
NS_WARNING("GetOriginAttributes failed");
|
||||
}
|
||||
@@ -71,6 +72,7 @@ SerializedLoadContext::Init(nsILoadContext* aLoadContext)
|
||||
// we won't be GetInterfaced to nsILoadContext
|
||||
mIsContent = true;
|
||||
mUseRemoteTabs = false;
|
||||
mUseTrackingProtection = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user