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>
<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':
break
case 'https':
is(event.data.status, "loaded", "nested load of https://example should not get blocked by the MCB");
SimpleTest.finish();
break;
}
});
document.body.appendChild(f);
</script>
</body>
</html>