summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_ping.html
blob: 8aaf34cc3afb54703dc765771b6a606d90ca1e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
<head>
  <title>Bug 1100181 - CSP: Enforce connect-src when submitting pings</title>
</head>
<body>
  <!-- we are using an image for the test, but can be anything -->
  <a id="testlink"
     href="http://mochi.test:8888/tests/image/test/mochitest/blue.png"
     ping="http://mochi.test:8888/tests/image/test/mochitest/blue.png?send-ping">
     Send ping
  </a>
  
  <script type="text/javascript">
    var link = document.getElementById("testlink");
    link.click();
  </script>
</body>
</html>