From:  Boris Zbarsky <>
Date:  22 Aug 2013 21:39:13 Hong Kong Time

Re: Forcing every request from a docShell to use LOAD_ANONYMOUS


On 8/22/13 3:17 AM, Mark Hammond wrote:
> What I believe is happening is that this speculative connection is being
> reused for the connection made by the "anonymous" docShell, and as a
> result mCaps on the transport isn't getting the NS_HTTP_LOAD_ANONYMOUS
> flag

That sounds entirely likely...

In particular, nsHttpConnectionMgr::MakeNewConnection doesn't seem to 
compare trans->Caps() to ent->mHalfOpens[i]->Transaction()->Caps() 
before reusing ent->mHalfOpens[i], afaict, and I think it should.  But 
someone who knows the HTTP code better than I should check that.