summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/portals/resources/portal-activate-data-portal.html
blob: 0842ad82efa19432dac85aa29d900fefd6d1a277 (plain)
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<script>
let logic = new Function('event', (new URL(location)).searchParams.get('logic'));
onload = () => window.portalHost.postMessage('ready');
onportalactivate = event => {
  var portal = event.adoptPredecessor();
  portal.postMessage(logic(event));
};
</script>