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/csp/mochitest.toml
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<!-- Including SimpleTest.js so we can use waitForExplicitFinish !-->
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe style="width:100%;" id="testframe"></iframe>
<script class="testbody" type="text/javascript">
/* Description of the test:
*
*
* The user navigates the embedded frame from
* The test makes sure that such a navigation is not blocked
* by block-all-mixed-content.
*/
function checkResults(result) {
is(result, "frame-navigated", "frame should be allowed to be navigated");
window.removeEventListener("message", receiveMessage);
SimpleTest.finish();
}
window.addEventListener("message", receiveMessage);
function receiveMessage(event) {
checkResults(event.data.result);
}
SimpleTest.waitForExplicitFinish();
document.getElementById("testframe").src =
"https://example.com/tests/dom/security/test/csp/file_block_all_mixed_content_frame_navigation1.html";
</script>
</body>
</html>