https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 6640192e5fb4ea726bfa7dee0703d566f5c89463 authored by Ms2ger on 24 November 2017, 10:22:20 UTC
Revert "[mediacapture-fromelement] Support Firefox moz-prefixed implementation in tests"
Tip revision: 6640192
iframe-upgrade.https.html
<!DOCTYPE html>
<html>
<head>
<title>Upgrade Insecure Requests: IFrames.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/testharness-helper.sub.js"></script>

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
</head>
<body>
<script>
var tests = [
  generateURL(Host.SAME_ORIGIN, Protocol.INSECURE, ResourceType.FRAME),
  generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.FRAME),
  generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.FRAME),
  generateURL(Host.CROSS_ORIGIN, Protocol.SECURE, ResourceType.FRAME),
];

tests.forEach(test => {
  async_test(t => assert_frame_loads(t, test.url), test.name);
});
</script>
</body>
</html>
back to top