Bug 422974 ? Prism uses old "Remember password?" mechanism. r=gavin
[wine-gecko.git] / content / base / test / file_bug426646-2.html
blob438a675041f6b1d274cdae46445c3d7bee59c461
1 <html><head>
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";
6 var win0 = null;
8 function doe() {
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);
16 function doe2() {
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';
28 function doe3() {
29 win0.frameElement.onload = doe4;
30 history.go(-1);
33 function doe4() {
34 opener.is(win0.location, url1, "History.go(-1) didn't work?");
35 close();
37 </script>
38 </head>
39 <body onload="doe();" onunload="opener.nextTest();">
40 </body></html>