blob: 4f9b702a6ea7bd1cbf41cf48baad07acf70d89ba [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.py?fail=true"></script>
<script src="../../js-test-resources/js-test-post.js"></script>