Re: Forcing every request from a docShell to use LOAD_ANONYMOUS
Boris Zbarsky <[email protected]> Mon, 19 Aug 2013 02:03:33 -0400
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <[email protected]> |
On 8/18/13 8:19 PM, Brian Smith wrote: > If I were to attempt this, I would follow the example here: > https://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp?rev=9fd000703ace#9426 > > i.e. I would set a flag/property on the docshell and then I would modify > DoURILoad to check that flag (on the current docshell, and on the parent) > and set the LOAD_ANONYMOUS flag on the channel as needed. That wouldn't set LOAD_ANONYMOUS on the various subrequests for the document loaded in the docshell (scripts, images, etc). -Boris