summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/file_image_inner_inner.html
blob: 1e605f1a25b0982151a936d42afdbf3d0ccb9b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
<head>
  <link rel="stylesheet" type="text/css" media="all" href="https://example.org/tests/netwerk/test/mochitests/test1.css" />
  <link rel="stylesheet" type="text/css" media="all" href="https://example.com/tests/netwerk/test/mochitests/test2.css" />
  <script type="text/javascript">
    function runTest() {
      document.cookie = "can2=has2";

      // send a message to our test document, to say we're done loading
      window.parent.opener.postMessage("message", "http://mochi.test:8888");
    }
  </script>
</head>
<body>
<img src="https://example.org/tests/netwerk/test/mochitests/image1.png" onload="runTest()" />
<img src="https://example.com/tests/netwerk/test/mochitests/image2.png" onload="runTest()" />
</body>
</html>