blob: bf8fb385ed0b6a9f7eb1e6810679d4c758ee8141 [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;
onload = () => {
w = open("resources/sync-xhr-in-beforeunload-window.html");
w.onload = () => {
setTimeout(() => {
w.close();
}, 0);
};
}
</script>
</body>
</html>