chromium/chrome/test/data/extensions/api_test/debugger/oopif.html

<body>
  <iframe width=300px height=300px></iframe>
  <script>
    var url = window.location.href;
    url = url.replace(/a\.com/, "b.com");
    url = url.replace(/oopif\.html/, "oopif_frame.html");
    document.querySelector('iframe').setAttribute('src', url);
  </script>
</body>