Re: Forcing every request from a docShell to use LOAD_ANONYMOUS
Mark Hammond <[email protected]> Sat, 17 Aug 2013 09:29:08 +1000
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <[email protected]> |
On 17/08/2013 3:57 AM, Christian Biesinger wrote: > I'm having trouble following the initial question. What does it mean > for a request to be "made via the docshell"? Made via one specific docShell. We create a <browser> element that will be used only to process a queue of URLs we want to thumbnail. We want every request processed by the docShell associated with this browser to have the LOAD_ANONYMOUS flag. Does that clarify? Thanks, Mark > > If you add LOAD_ANONYMOUS to that list and also make all docshells set > that flag, then all page loads and their subcomponents will have that > flag set. That's not what you want. > > That said, adding the flag to that list seems independently useful. > > -christian > > On Fri, Aug 16, 2013 at 1:37 PM, Jason Duell <[email protected]> wrote: >> On 08/16/2013 09:28 AM, Jason Duell wrote: >>> >>> On 08/16/2013 06:23 AM, Ehsan Akhgari wrote: >>>> >>>> Looking at the code, we do not pass on the LOAD_ANONYMOUS flag to >>>> subrequests of a load group: < >>>> >>>> http://mxr.mozilla.org/mozilla-central/source/netwerk/base/src/nsLoadGroup.cpp#1035>. >>>> I'm not sure what the reason behind this is, but you can verify whether >>>> this is where the problem comes from by breaking on that code and >>>> inspecting the load group and the attached request's flags after this >>>> call. >>> >>> >>> I wonder if this is also what causes >>> >>> https://bugzilla.mozilla.org/show_bug.cgi?id=831153 >>> >> >> Hmm, looks like it must be something else that causes the refresh bug--the >> loadFlags in question are part of the mask. >> >> bz/biesi: so for Mark's issue, could we just add LOAD_ANONYMOUS to the list >> here? >> >> http://mxr.mozilla.org/mozilla-central/source/netwerk/base/src/nsLoadGroup.cpp#1035>. >> >> >> Jason >> >> >>>> -- >>>> Ehsan >>>> <http://ehsanakhgari.org/> >>>> >>>> >>>> On Fri, Aug 16, 2013 at 1:17 AM, Mark Hammond >>>> <[email protected]>wrote: >>>> >>>>> In bugs 875986 and 902439, we are trying to arrange for a docShell >>>>> hosted >>>>> in a (remote) browser used for thumbnailing to arrange for all requests >>>>> made via that docShell to use the LOAD_ANONYMOUS flag. This should >>>>> solve a >>>>> number of problems, the most pressing of which is that SSL client >>>>> certificates are being prompted for (or just silently sent) while doing >>>>> the >>>>> thumbnail for certain sites. >>>>> >>>>> At first I thought it should be as simple as docShell.loadGroup.flags |= >>>>> Cu.nsIRequest.LOAD_ANONYMOUS, but this isn't having the desired effect. >>>>> I >>>>> tried various other things and asked on #developers, but I've been >>>>> unable >>>>> to work out how the make this happen. The interactions between the >>>>> docShell, loadGroups and requests is fairly involved, so even looking at >>>>> the code and stepping through in the debugger isn't giving me any joy. >>>>> >>>>> Can someone tell me how I can make this happen? >>>>> >>>>> Thanks, >>>>> >>>>> Mark >>>>> ______________________________**_________________ >>>>> dev-tech-network mailing list >>>>> dev-tech-network@lists.**mozilla.org >>>>> <[email protected]> >>>>> >>>>> https://lists.mozilla.org/**listinfo/dev-tech-network<https://lists.mozilla.org/listinfo/dev-tech-network> >>>>> >>>> _______________________________________________ >>>> dev-tech-network mailing list >>>> [email protected] >>>> https://lists.mozilla.org/listinfo/dev-tech-network >>> >>> >>> _______________________________________________ >>> dev-tech-network mailing list >>> [email protected] >>> https://lists.mozilla.org/listinfo/dev-tech-network >> >>