dom/tests/mochitest/bugs/file_bug593174_2.html

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:a9d371098fc9
1 <html>
2 <body>
3 Page 2 has an iframe of its own.
4 <iframe id='inner-iframe' onload='innerIframeLoaded()' src='data:text/html,
5 <html><body>
6 <script>function go() { window.location = "file_bug593174_1.html"; }</script>
7 </body></html>'>
8 </iframe>
9
10 <script>
11 function innerIframeLoaded() {
12 if (parent.iframeLoaded) {
13 parent.iframeLoaded('inner');
14 }
15 else if(opener.iframeLoaded) {
16 opener.iframeLoaded('popup/inner');
17 }
18 }
19
20 function navigateInnerIframe() {
21 document.getElementById('inner-iframe').contentWindow.go();
22 }
23
24 function getInnerIframeReferrer() {
25 return document.getElementById('inner-iframe').contentWindow.document.referrer;
26 }
27 </script>
28
29 </body>
30 </html>

mercurial