Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <html class="reftest-wait">
2 <head>
3 <script type="text/javascript">
5 function p(n)
6 {
7 dump("Test 212563-2 says: " + n + "\n");
8 }
10 // Step 1: replace the innermost frame
11 function changeInnermost(iframeElement)
12 {
13 iframeElement.setAttribute("src",
14 "data:text/html,<body onload='" + w + "w(parent.document, top);'><font color=blue>new innermost");
15 }
17 // Step 2: replace the middle iframe (from the new innermost iframe's onload handler)
18 var replacementForMiddleFrame = "<body onload=top.p(5);parent.document.documentElement.removeAttribute('class');>replacement for middle frame<script>top.p(2);<\/script><\/body>";
20 function w(md, t)
21 {
22 t.p(0);
23 md.write(t.replacementForMiddleFrame);
24 t.p(3);
25 t.p(md.documentElement.innerHTML);
26 md.close();
27 t.p(4);
28 }
31 </script>
32 </head>
33 <body>
34 <iframe src="212563-2-inner.html"></iframe>
35 </body>
36 </html>