Changes

Jump to: navigation, search

Browser History:Redirects

463 bytes added, 17:26, 30 December 2005
Proposal
Global history would maintain queues of URLs for typed and bookmarked flags. When new URLs come through that have no referrer, it would check these queues to see if the URL had either of these flags set. This requires no changes to non-history system code, but it could be confused in some unusual cases (for example, if the user types and and follows a bookmark in quick succession for the same URL). The side effect of getting it wrong is very minor.
 
For dealing with meta refreshes, it might be sufficient to detect LOAD_FLAGS_REPLACE_HISTORY in docshell::AddToGlobalHistory and provide some indication to history about this predicament. If the time between the original page and the replacement is low, history can assume the replacement is due to a refresh and mark it accordingly. This might also catch some cases where scripts cause the page to redirect somewhere else, which would be nice.
Review of changes in docshell code:
* Implement nsIWritablePropertyBag on nsISHistoryEntry
* "Somehow" detect META refreshes and do "somethingTell GlobalHistory when a load is due to a refresh." Perhaps we'll need This might be provided as a flag to the new function so history can go fixup the redirect sourceAddURIFrom which is called from AddToGlobalHistory.
202
edits

Navigation menu