blob: 7fefcb7f46db87701019029a1070bfcc23edd5f4 [file] [log] [blame]
<html><body>
This tests behavior of "noreferrer" links in subframes. A referrer should not be sent and window.opener should remain null.<br/>
<a id="link" href="resources/no-referrer-helper.php" rel="noreferrer" target="subframe">Load subframe</a>
<iframe id="subframe" name="subframe" src="about:blank"></iframe>
<script>
window.name = "consoleWindow";
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var target = document.getElementById("link");
eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
eventSender.mouseDown();
eventSender.mouseUp();
function log(msg)
{
var line = document.createElement('div');
line.appendChild(document.createTextNode(msg));
document.getElementById('console').appendChild(line);
}
</script>
<div id="console"></div>
</body></html>