blob: adb4cf6a85bd2785f875d838ad5eb1c97c4832b7 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="/js-test-resources/js-test.js"></script>
<script>
description("Verifying navigator.sendBeacon(Blob) non-CORS cross-origin redirect handling.");
if (window.testRunner) {
testRunner.dumpPingLoaderCallbacks();
}
const blob = new Blob(["Cross", "Origin"], {type: "text/plain;from-beacon=true"});
// The "simple" parameter is just for differentiating the URLs.
shouldBeTrue('navigator.sendBeacon("http://127.0.0.1:8080/resources/redirection-response.php?status=302&simple=true&target=/non-existent.php", blob);');
</script>