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