From:  Boris Zbarsky <bzbarsky@mit.edu>
Date:  19 Aug 2013 21:37:42 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.tech.network
Subject:  

Re: Forcing every request from a docShell to use LOAD_ANONYMOUS

NNTP-Posting-Host:  72.83.161.29

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 
nsLoadGroup::SetDefaultLoadRequest.

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.

-Boris