Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3 OR http2
- Manifest: dom/security/test/mixedcontentblocker/mochitest.toml
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
let f = document.createElement("iframe");
window.addEventListener("message", (event) => {
switch(event.data.type) {
case 'http':
is(event.data.status, "blocked", "nested load of http should be blocked.");
break
case 'https':
is(event.data.status, "loaded", "nested load of https should not be blocked.");
SimpleTest.finish();
break;
}
});
document.body.appendChild(f);
</script>
</body>
</html>