blob: 47c085ab74be47ee167b7f2ab40a8c49e61367e1 [file] [log] [blame]
<body>
<script src="../../js-test-resources/js-test-pre.js"></script>
<script>
window.jsTestIsAsync = true;
description("The test passes if window.onerror gets sanitized information about the script error.");
window.onerror = function(msg, url, line, column, error) {
window.msg = msg;
window.url = url;
window.line = line;
window.column = column;
window.error = error;
shouldBeNull("msg.match(/SomeError/)");
shouldBeEqualToString("url", "");
shouldBe("line", "0");
shouldBe("column", "0");
shouldBeNull("error");
finishJSTest();
}
</script>
<!-- crossorigin attribute is not set, we shouldn't get any specific info on the error. -->
<script src="http://localhost:8000/security/resources/cors-script.php?fail=true"></script>
<script src="../../js-test-resources/js-test-post.js"></script>