blob: 7b492a11867c8bfc550edee7a0ebe9e242603e04 [file] [log] [blame]
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.onunload = parent.t.step_func(() => {
try {
console.log("trying the synx xhr");
var xhr = new XMLHttpRequest();
xhr.open("GET", "resources/1251.html", false);
xhr.send(null);
assert_unreached('Sync XHR must throw during an unload event');
} catch (e) {
parent.t.done();
}
});
</script>
</head>
<body>
</body>
</html>