Randell Jesup wrote:

>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Posted-To: netscape.public.mozilla.netlib
>--text follows this line--
>The following message is a courtesy copy of an article
>that has been posted to netscape.public.mozilla.netlib as well.
>
>I need to find out in onStateChange() (in nsBrowserStatusHandler.js), when
>we start a load (nsIWebProgressListener.STATE_START and
>nsIWebProgressListener.STATE_IS_NETWORK), if the load was caused by a HTTP
>Refresh header (or http-equiv meta Refresh).  I'm more than willing to add
>data/methods to objects to make this possible, if needed.  Any ideas?  I
>have the aRequest to play with.... (I'm willing to make mods not
>wanted for the main mozilla tree for my embedding project if need be.)
>
>Thanks for any help.
>
>  
>


this information isn't remembered AFAIK.  refreshes go
through nsIRefreshURI implemented by nsDocShell.  i
suppose you could flag the resulting channel in some way
and then look for that flag on the aRequest passed to your
onStateChange() handler.

there are some free bits on nsIRequest::loadFlags that you
could possibly hijack, but there's of course no guarantee
that they won't be used for other things in the future.

darin


Reply via email to