Bug 787778 - Add test. r=josh

This commit is contained in:
John Schoenick 2012-10-04 16:03:21 -07:00
parent 28fd36a685
commit 27df89c5ad
3 changed files with 35 additions and 0 deletions

View File

@ -574,6 +574,8 @@ MOCHITEST_FILES_B = \
test_bug749367.html \
test_bug753278.html \
test_bug761120.html \
test_bug787778.html \
file_bug787778.sjs \
test_XHR_onuploadprogress.html \
test_XHR_anon.html \
file_XHR_anon.sjs \

View File

@ -0,0 +1,8 @@
function handleRequest(request, response)
{
response.processAsync();
response.setHeader("Content-Type", "text/plain", false);
response.setHeader("X-Frame-Options", "DENY", false);
response.finish();
}

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=787778
-->
<html>
<head>
<meta charset="utf-8">
<title>Test for Bug 787778</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
window.onload = function() {
window.document.x.src='a';
SimpleTest.executeSoon(function () {
ok(true, "Didn't crash!");
SimpleTest.finish();
});
}
</script>
</head>
<body>
<embed name="x" src="./file_bug787778.sjs">
</body>
</html>