summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/secure-contexts/support/shared-worker-insecure-popup.html
blob: 740679dc4f2baa8d8550094746f73d70a44c470a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<script src="../server-locations.sub.js"></script>
<body>
  <script>
    var url = self[location.search.substr(1)] + "support/https-subframe-shared.html";
    onmessage = function(e) {
      var data = e.data;
      data.fromPopup = true;
      opener.postMessage(data, "*");
    }
    var ifr = document.createElement("iframe");
    ifr.src = url;
    document.body.appendChild(ifr);
  </script>
</body>