32 lines
793 B
HTML
32 lines
793 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>img.src changes to unsecure test</title>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="text/javascript" src="mixedContentTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
<script class="testbody" type="text/javascript">
|
|
"use strict";
|
|
|
|
(new Image()).src =
|
|
"http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg";
|
|
|
|
async function runTest()
|
|
{
|
|
await isSecurityState("broken", "(new Image()).src='http://...' changed to broken");
|
|
finish();
|
|
}
|
|
|
|
async function afterNavigationTest()
|
|
{
|
|
await isSecurityState("broken", "security broken after navigation");
|
|
finish();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
</body>
|
|
</html>
|