https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d2ba4fa6a36b07ec6c39aaab854e04cdc35061c1 authored by mtrofin@chromium.org on 17 July 2017, 04:23:48 UTC
[wasm] Enable postMessage for in-process senders/receivers by default.
Tip revision: d2ba4fa
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