Changes

Jump to: navigation, search

Browser History:Redirects

1 byte removed, 20:50, 14 December 2005
m
typo
=== Redirecting from the DocShell/DocLoader level ===
nsDocLoader impleoments implements nsIChannelEventSink, which gets channel event messages. When it gets OnChannelRedirect, it has both the new and the old channels. It sets the STATE_IS_DOCUMENT flag if the channel has its LOAD_DOCUMENT_URI flag set, and fires a state change notification.
The state change firing notifies all WebProgressListeners that have been attached to the DocLoader. The DocShell, which is derived from the DocLoader, is registered as an event listener itself. Then we get the OnStateChange event with the SOURCE channel, which checks the STATE_IS_DOCUMENT and STATE_REDIRECTING flags. No information is available about the new destination channel or URI. When these flags are set, it calls AddToGlobalHistory with a redirect flag of true.
202
edits

Navigation menu