mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1356538 - Carry class-of-service flags to redirected channels. r=mcmanus
--HG-- extra : rebase_source : a0688aa4f470fe377de3cc377f2eb8a2c67bef0c
This commit is contained in:
parent
1c495d8974
commit
d02e6da08f
@ -3145,6 +3145,11 @@ HttpBaseChannel::SetupReplacementChannel(nsIURI *newURI,
|
||||
newChannel->SetNotificationCallbacks(mCallbacks);
|
||||
newChannel->SetLoadFlags(newLoadFlags);
|
||||
|
||||
nsCOMPtr<nsIClassOfService> cos(do_QueryInterface(newChannel));
|
||||
if (cos) {
|
||||
cos->SetClassFlags(mClassOfService);
|
||||
}
|
||||
|
||||
// Try to preserve the privacy bit if it has been overridden
|
||||
if (mPrivateBrowsingOverriden) {
|
||||
nsCOMPtr<nsIPrivateBrowsingChannel> newPBChannel =
|
||||
|
Loading…
Reference in New Issue
Block a user