summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/tests/mochitest/stricttransportsecurity/plain_bootstrap.html
blob: f9b0f93814eda53859d4311015004465a58f1efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE HTML>
<html>
  <head>
    <title>STS test iframe</title>
    <script>
      "use strict";
      let windowRef = window;
      window.addEventListener("load", function() {
        windowRef.parent.postMessage("BOOTSTRAP plain",
                                     "http://mochi.test:8888");
      }, false);
    </script>
  </head>
  <body>
    <!-- This frame should be loaded over HTTPS to set the STS header. -->
    This frame was loaded using 
    <script>
      document.write(document.location.protocol);
    </script>
    and set the STS header to force this site and allow subdomain upgrading.
  </body>
</html>