Bug 909218 - add defaultLoadFlags to nsILoadGroup and have the docShell set them. r=mayhemer

This commit is contained in:
Mark Hammond
2013-09-06 16:33:29 +10:00
parent a44e8684c2
commit adc446a845
5 changed files with 46 additions and 2 deletions

View File

@@ -5379,6 +5379,14 @@ NS_IMETHODIMP
nsDocShell::SetDefaultLoadFlags(uint32_t aDefaultLoadFlags)
{
mDefaultLoadFlags = aDefaultLoadFlags;
// Tell the load group to set these flags all requests in the group
if (mLoadGroup) {
mLoadGroup->SetDefaultLoadFlags(aDefaultLoadFlags);
} else {
NS_WARNING("nsDocShell::SetDefaultLoadFlags has no loadGroup to propagate the flags to");
}
// Recursively tell all of our children. We *do not* skip
// <iframe mozbrowser> children - if someone sticks custom flags in this
// docShell then they too get the same flags.