blob: 6473b135e79a293e05516afaea9e1703b3e989c2 [file] [log] [blame]
<!-- webkit-test-runner [ UsesBackForwardCache=true ] -->
<!DOCTYPE html>
<html>
<head>
<script src="/common/utils.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script>
const RESOURCES_DIR = "/beacon/resources/";
var id = self.token();
</script>
</head>
<body>
<script>
onpagehide = function() {
const testUrl = RESOURCES_DIR + "content-type-and-body.py?cmd=put&id=" + id;
fetch(testUrl, { method : 'POST', headers : [["Content-Type", "text/plain;charset=UTF-8"]], body: 'test', keepalive : location.hash === "#keepalive" });
}
</script>
</body>
</html>