OLD | NEW |
1 <html><body> | 1 <html><body> |
2 This tests behavior of "noreferrer" links in subframes. A referrer should not be
sent and window.opener should remain null.<br/> | 2 This tests behavior of "noreferrer" links in subframes. A referrer should not be
sent and window.opener should remain null.<br/> |
3 <a id="link" href="resources/no-referrer-helper.php" rel="noreferrer" target="su
bframe">Load subframe</a> | 3 <a id="link" href="resources/no-referrer-helper.php" rel="noreferrer" target="su
bframe">Load subframe</a> |
4 <iframe id="subframe" src="about:blank"></iframe> | 4 <iframe name="subframe" src="about:blank"></iframe> |
5 <script> | 5 <script> |
6 window.name = "consoleWindow"; | 6 window.name = "consoleWindow"; |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 } | 10 } |
11 | 11 |
12 var target = document.getElementById("link"); | 12 var target = document.getElementById("link"); |
13 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2); | 13 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2); |
14 eventSender.mouseDown(); | 14 eventSender.mouseDown(); |
15 eventSender.mouseUp(); | 15 eventSender.mouseUp(); |
16 | 16 |
17 function log(msg) | 17 function log(msg) |
18 { | 18 { |
19 var line = document.createElement('div'); | 19 var line = document.createElement('div'); |
20 line.appendChild(document.createTextNode(msg)); | 20 line.appendChild(document.createTextNode(msg)); |
21 document.getElementById('console').appendChild(line); | 21 document.getElementById('console').appendChild(line); |
22 } | 22 } |
23 </script> | 23 </script> |
24 <div id="console"></div> | 24 <div id="console"></div> |
25 </body></html> | 25 </body></html> |
OLD | NEW |