Brian J. Tarricone wrote:
> i'm writing a mozilla component that implements nsIHttpNotify.  in my
> implementation of OnModifyResponse(), i need to (possibly, depending on
> some http header vaules) reload the current page.  however, i can't seem
> to find a method to access the webshell/docshell or even a webnavigator
> or somesuch to do this.  all that is passed to OnModifyResponse is a
> pointer to the current nsHttpChannel, and i can't seem to find a way to
> get the docshell with which it is associated.  i've pored over a lot of
> mozilla source, and i'm getting rather frustrated.  am i trying to do
> this the hard way?  is there something i'm missing?  any help would be
> appreciated.
> 
> thanks,
> brian
> 
> p.s. please cc: me via email, if you don't mind - thanks again


i don't believe there is a clean way to extract the webshell/docshell 
associated with a given http channel.  the relationship simply isn't 
maintained at the http level.  that said, the docshell/webshell may be 
indirectly accessible as the channel's listener or notification 
callbacks or via one of the interfaces that the channel's notification 
callbacks provides... very indirect (and not at all "kosher") at best.

darin


Reply via email to