blob: 9ed6f9384f48a38cc56dd4c05d3fd23e1973ffa0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<iframe id="testFrame" src="resources/xmlhttprequest-multiple-sync-xhr-during-unload-iframe.html"></iframe>
<script>
description("Makes sure that we throw when doing sync XHRs during unload.");
jsTestIsAsync = true;
frameDidUnload = (_xhrExceptionCount) => {
xhrExceptionCount = _xhrExceptionCount;
shouldBe("xhrExceptionCount", "5");
finishJSTest();
}
onload = () => {
testFrame.remove();
}
</script>
</html>