3 // Test that the very first navigation made on a newly created IFRAME does not
4 // create another session history entry, even if the IFRAME is already attached
5 // to the document and the page has fully loaded.
7 var f
= document
.createElement("iframe");
8 document
.body
.appendChild(f
);
10 f
.contentWindow
.location
= "data:,hello";
12 f
.onload = function() {
13 document
.body
.innerText
= "history.length = " + history
.length
;
14 if (window
.testRunner
)
15 testRunner
.notifyDone();
19 onunload = function() {
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.dumpBackForwardList();
27 testRunner
.clearBackForwardList();
28 testRunner
.waitUntilDone();
30 setTimeout(runTest
, 0);