testing/web-platform/tests/portals/resources/portal-activate-event-window.html
author Lucas Furukawa Gadani <lfg@chromium.org>
Thu, 31 Jan 2019 18:30:49 +0000
changeset 457813 d3aea0b0ff9c3f08a931992bc9289de144c26611
parent 456927 25f061ee975f2ac569ee438a2b2b5f0a81a4699b
child 456992 1c11a1c8c64deec11d4f87913599c2e34af730fe
permissions -rw-r--r--
Bug 1518222 [wpt PR 14740] - Portals: Add support for PortalActivateEvent., a=testonly Automatic update from web-platform-tests Portals: Add support for PortalActivateEvent. This event is dispatched on the portal Window when it is activated. Bug: 914122 Change-Id: I4fa3117e1684c8f1d4ead95f62a7285978afaca2 Reviewed-on: https://chromium-review.googlesource.com/c/1396449 Commit-Queue: Lucas Gadani <lfg@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Charlie Reis <creis@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#621708} -- wpt-commits: 29de5e8fdb67de6b57342a83c076a49a93f0e7cf wpt-pr: 14740

<!DOCTYPE html>
<script>
  var bc = new BroadcastChannel("portal");
  bc.onmessage = function(e) {
    document.querySelector("portal").activate();
    bc.close();
  }
</script>
<body>
  <portal src="portal-activate-event-portal.html"></portal>
</body>