dom/tests/mochitest/beacon/file_beaconSafelist.html
author Jonathan Kingston <jonathan@jooped.co.uk>
Thu, 21 May 2020 10:17:44 +0000
changeset 531417 68aec891cd2e3d32372c8fde04841a64f3ce2365
permissions -rw-r--r--
Bug 1557386 - Testing CORS content and errors for beacon. r=ckerschb Differential Revision: https://phabricator.services.mozilla.com/D75804

<!DOCTYPE HTML>
<script class="testbody" type="text/javascript">

var beaconUrl = "http://example.com/tests/dom/tests/mochitest/beacon/beacon-handler.sjs?beacon";

var value = ["text"];
var blob = new Blob(value, {type: "application/x-www-form-urlencoded"});
navigator.sendBeacon(beaconUrl, blob);
var intervalID = null;

</script>