This page helps test history navigations. Example steps to
trigger a history navigation:
- Generate a history entry
- Open a new tab (so that closing a tab in one of next steps
won't quit the whole browser).
- Navigate to this page using the address bar / omnibox / etc.
- Observe that on a fresh load, the left frame always contains
red.htm, and the right frame always contains green.htm
(i.e. the color of frame contents and frame borders matches)
- Force a history navigation (this is only an example, there might be
other ways)
- Close the newly opened tab
- Reopen the tab (i.e. in Chromium, right click on another
tab and choose "Reopen closed tab" from the context menu)
- Observe the contents of the left and right frame. They should
be the same as when generating the history entry (i.e. red.htm
in the left frame and green.htm in the right frame)
When this page is loaded via a history navigation (see repro
steps above), it should preserve the historical content of the
"left" frame and the "right" frame. The problem for some browsers
is that on odd loads the "left" frame is created first, and on even
loads the "right" frame is created first (confusing browsers into
swapping frame contents in browsers that identify subframes based
on their creation order).
Frame creation order during this page load:
Dynamically created frames: