This page helps test history navigations. Example steps to trigger a history navigation:

  1. Generate a history entry
    1. Open a new tab (so that closing a tab in one of next steps won't quit the whole browser).
    2. Navigate to this page using the address bar / omnibox / etc.
    3. 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)
  2. Force a history navigation (this is only an example, there might be other ways)
    1. Close the newly opened tab
    2. Reopen the tab (i.e. in Chromium, right click on another tab and choose "Reopen closed tab" from the context menu)
  3. 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: