| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 if (window.testRunner) { | 2 if (window.testRunner) { |
| 3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
| 4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
| 5 testRunner.dumpChildFramesAsText(); | 5 testRunner.dumpChildFramesAsText(); |
| 6 } | 6 } |
| 7 </script> | 7 </script> |
| 8 The srcdoc iframe below should use this document's URL as its referrer. | 8 The srcdoc iframe below should use this document's URL as its referrer. |
| 9 <iframe srcdoc=" | 9 <iframe srcdoc=" |
| 10 This iframe logs information about its referrer:<br> | 10 This iframe logs information about its referrer:<br> |
| 11 <iframe id='tg'></iframe> | 11 <iframe id='tg' name='tg'></iframe> |
| 12 <form target='tg' id='fm' method='GET' action='resources/referrer-policy-log.php
'></form> | 12 <form target='tg' id='fm' method='GET' action='resources/referrer-policy-log.php
'></form> |
| 13 <script> | 13 <script> |
| 14 document.getElementById('tg').addEventListener('load', function() { | 14 document.getElementById('tg').addEventListener('load', function() { |
| 15 if (window.testRunner) | 15 if (window.testRunner) |
| 16 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
| 17 }, false); | 17 }, false); |
| 18 document.getElementById('fm').submit(); | 18 document.getElementById('fm').submit(); |
| 19 </script> | 19 </script> |
| 20 "></iframe> | 20 "></iframe> |
| OLD | NEW |