blob: d818342ff5b9a2ffe8a644b57ddb5a2179b24c1f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<script>
description("Checks that trying to do a synchronous XHR in a beforeunload event handler is not allowed.");
jsTestIsAsync = true;
if (window.testRunner)
testRunner.setCanOpenWindows();
onload = () => {
w = open("resources/sync-xhr-in-beforeunload-window.html");
w.onload = () => {
setTimeout(() => {
w.close();
}, 0);
};
}
</script>
</body>
</html>