2 <title>Bug
426646, Using location.replace breaks iframe history
</title>
3 <script type=
"text/javascript">
4 var url1
= "data:text/html;charset=utf-8,1st%20page";
9 document
.body
.innerHTML
= "<iframe src='about:blank'></iframe>";
10 document
.body
.innerHTML
+= "<iframe src='about:blank'></iframe>";
11 win0
= window
.frames
[0];
12 win0
.frameElement
.onload
= doe2
;
13 win0
.location
.replace(url1
);
17 // Add some iframes/docshells. Session history should still work.
18 var ifr1
= document
.createElement("iframe");
19 document
.body
.insertBefore(ifr1
, document
.body
.firstChild
);
20 var ifr2
= document
.createElement("iframe");
21 document
.body
.insertBefore(ifr2
, document
.body
.firstChild
);
22 var ifr3
= document
.createElement("iframe");
23 document
.body
.insertBefore(ifr3
, document
.body
.firstChild
);
24 win0
.frameElement
.onload
= doe3
;
25 win0
.location
= 'data:text/html;charset=utf-8,2nd%20page';
29 win0
.frameElement
.onload
= doe4
;
34 opener
.is(win0
.location
, url1
, "History.go(-1) didn't work?");
39 <body onload=
"doe();" onunload=
"opener.nextTest();">