summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/browsing-topics/resources/document-api-notify-parent.tentative.https.html
blob: 2fd55ebeb2c1d1df0773c50c5f0271ebcb4de857 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!doctype html>
<body>
  <script>
    document.browsingTopics().then((topics) => {
      window.parent.postMessage({error: 'No error'}, '*');
    })
    .catch((err) => {
      window.parent.postMessage({error: err.message}, '*');
    });
  </script>
</body>