From 40f61430b5cfedd75d7fa4ccc5e40a957d938598 Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Fri, 6 Sep 2013 16:33:29 +1000 Subject: [PATCH] Bug 909218 - add defaultLoadFlags to nsILoadGroup and have the docShell set them. r=mayhemer --- docshell/base/nsDocShell.cpp | 8 ++++++++ docshell/base/nsIDocShell.idl | 3 ++- netwerk/base/public/nsILoadGroup.idl | 17 ++++++++++++++++- netwerk/base/src/nsLoadGroup.cpp | 19 +++++++++++++++++++ netwerk/base/src/nsLoadGroup.h | 1 + 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index dac2d206c0ba..79d088f70134 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -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 //