blob: a13cea7dda4d75855d00efa70a872619ac202751 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
var req = new XMLHttpRequest();
req.open('GET', location);
try {
req.send();
} catch (e) {
window.parent.postMessage(e.name, '*');
}
if (req.responseText == "")
window.parent.postMessage('SUCCESS', '*');
else
window.parent.postMessage('FAIL', '*');
</script>
</head>
<body>
Documents loaded from file: shouldn't be able to access themselves via XHR.
</body>
</html>