dom/tests/mochitest/bugs/file_bug593174_2.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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>
    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 }
    20 function navigateInnerIframe() {
    21   document.getElementById('inner-iframe').contentWindow.go();
    22 }
    24 function getInnerIframeReferrer() {
    25   return document.getElementById('inner-iframe').contentWindow.document.referrer;
    26 }
    27 </script>
    29 </body>
    30 </html>

mercurial