summaryrefslogtreecommitdiffstats
path: root/dom/security/test/https-first/download_page.html
blob: a828ee07dbda1a8f465d80783bcbfa7e927a5027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
  <head>
    <title>Test mixed content download by https-first</title>
  </head>
  <body>
    hi

    <script>
      const host = window.location.host;
      const path = location.pathname.replace("download_page.html","download_server.sjs");

      const insecureLink = document.createElement("a");
      insecureLink.href=`http://${host}${path}`;
      insecureLink.download="true";
      insecureLink.id="insecure";
      insecureLink.textContent="Not secure Link";

      document.body.append(insecureLink);
  </script>
  </body>
</html>