1
0
Fork 0
firefox/dom/security/test/mixedcontentblocker/test_bug1550792.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

35 lines
925 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Bug 1550792: Block insecure subresource with non-https secure context parent</title>
<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");
f.src = "https://example.com/tests/dom/security/test/mixedcontentblocker/file_bug1550792.html";
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>