summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/portals/resources/portal-activate-inside-portal.html
blob: ff8bead3242fd2334f4e1f263cd66e381c1c69fa (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<body>
  <script>
    var portal = document.createElement("portal");
    portal.src = "simple-portal.html";
    portal.onload = () => {
      portal.activate().catch(e => window.portalHost.postMessage(e.name));
    }
    document.body.appendChild(portal);
  </script>
</body>