chromium/third_party/blink/web_tests/http/tests/security/frameNavigation/xss-ALLOWED-top-navigation-after-postMessage.html

<html>
<body>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

window.onload = function() {
  if (window.eventSender) {
    var b = document.getElementById("b");
    eventSender.mouseMoveTo(b.offsetLeft + 2, b.offsetTop + 2);
    eventSender.mouseDown();
    eventSender.mouseUp();
  }
}

function test() {
    window.frames[0].postMessage('run test', '*');
}
</script>
<button id="b" onclick="test();">Perform test</button>
<iframe src="http://localhost:8000/security/frameNavigation/resources/top-navigate-in-onmessage.html"></iframe>
</body>
</html>