<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>iframe wrapper for the console custom page</title>
  <style type="text/css">
    html, body {
      height: 100%;
      width: 100%;
    }
    iframe {
      border-style: none;
      height: 100%;
      position: absolute;
      width: 100%;
    }
  </style>
</head>
<body>
<script>
  // Test parameters are passed to this page via url parameters.
  // Create the iframe URL from the current URL to preserve the parameters.
  const searchParamsEncoded = document.location.search;
  const searchParams = new URLSearchParams(searchParamsEncoded);
  const iframeSrc = `http://damp.iframe.com/tests/devtools/addon/content/pages/custom/console/iframe.html${searchParamsEncoded}`;
  const iframe = document.createElement("iframe");
  iframe.setAttribute("src", iframeSrc);
  document.body.appendChild(iframe);
</script>
</body>
</html>
