From:  Boris Zbarsky <>
Date:  19 Aug 2013 21:37:42 Hong Kong Time

Re: Forcing every request from a docShell to use LOAD_ANONYMOUS


On 8/19/13 4:45 AM, Mark Hammond wrote:
> nsLoadGroup::MergeLoadFlags() isn't actually called here

Hmm.  This is only called for sub-requests.  Worse yet, the default load 
request will clobber the loadgroup flags.  See 

So you need to set the flag explicitly on the document load in docshell 
_and_ propagate it in MergeLoadFlags.  On the other hand, you don't need 
to manually twiddle the flags on the loadgroup: setting them on the 
document load request will handle it for the subresources.