Changes

Jump to: navigation, search

Browser History:Redirects

669 bytes added, 17:56, 30 December 2005
How redirecting notifications work from the DocShell/DocLoader level
META refreshes are a little more complicated. We would like to be able to detect meta refreshes with a time less than X (where X is something like 20 seconds). These get loaded with LOAD_FLAGS_REPLACE_HISTORY set. Apparently, this can be set for other types of documents as well, and I'm unclear at the moment how to detect meta refreshes, or where to get the refresh time (we probably don't want to worry about refreshes with very long timeouts). In any case, we don't know that the page will refresh until it does, meaning that when this happens we'll want to go back and hide the source page from global history.
 
Example: I have a web page redirect.html that as a META refresh to www/demo.html. My web server will rewrite requests from www to www.mydomain.com.
 
* Type "www/refresh.html"
 
* Add "www/refresh.html" to global history as a redirect
 
* Get a OnChannelRedirect to "www.mydomain.com/refresh.html"
 
* Add "www.mydomain.com/refresh.html" to global history as a normal page.
 
* Get a load for "www/demo.html" with LOAD_FLAGS_REPLACE_HISTORY
 
* Add "www/demo.html" to global history as a redirect
 
* Get a OnChannelRedirect to "www.mydomain.com/demo.html", LOAD_FLAGS_REPLACE_HISTORY is still set.
 
* Add "www.mydomain.com/refresh.html" to global history as a normal page.
=== Proposal ===
202
edits

Navigation menu