<head>
<meta http-equiv="Content-Security-Policy" content="frame-src 'none'"/>
</head>
<div id="container">
<p>You should run this test in Test Runner</p>
<p>This is a regression test for https://crbug.com/658701</p>
</div>
<div id="log"></div>
<iframe id="iframe"
srcdoc="
<p>frame-src-vs-shift-click-FRAME.html:
<a id="test-anchor"
href="resources/frame-src-vs-shift-click-target.html"
>Test anchor</a>
</p>
"></iframe>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setPopupBlockingEnabled(false);
testRunner.waitUntilDone();
window.onload = function() {
var iframe = document.getElementById("iframe");
var anchor = iframe.contentWindow.document.getElementById('test-anchor');
var x = iframe.offsetLeft + anchor.offsetLeft + 3;
var y = iframe.offsetTop + anchor.offsetTop + 3;
eventSender.dragMode = false;
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown(0);
eventSender.mouseUp(0, ['shiftKey']);
};
}
</script>