blob: 39b9b77f9c3bf644bf76404ff92fe3225f466eb2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script>
function setupListener(xhr) {
xhr.addEventListener('readystatechange', function (e) {
// Access xhr.response so that it gets cached.
if (xhr.response) {
top.debug("* In child frame");
if (xhr.response.constructor === top.Object)
top.testPassed("xhr.response.constructor is top.Object");
else
top.testFailed("xhr.response.constructor is not top.Object");
}
});
}
</script>
</body>
</html>