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