chromium/third_party/blink/web_tests/fast/dom/Window/resources/file-origin-window-open-frame.html

<script>
window.addEventListener('message', function () {
  var exc = null;
  try {
    newWindow.document;
  } catch (e) {
    exc = e;
  }
  top.postMessage(exc ? '' + exc : null, '*');
});
newWindow = window.open('file-origin-window-open-popup.html');
</script>