chromium/third_party/blink/web_tests/external/wpt/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/promise-job-entry-incumbent.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>Incumbent page used as a test helper</title>

<iframe src="relevant/relevant.html" id="r"></iframe>
<iframe src="current/current.html" id="c"></iframe>

<script>
  const relevant = document.querySelector("#r");
  const current = document.querySelector("#c");

  window.runWindowOpenVeryIndirectly = (...args) => {
    return current.contentWindow.open.call(relevant.contentWindow, ...args);
  };
</script>