Bug 787778 - Add test. r=josh
☠☠ backed out by 34e2424d1044 ☠ ☠
authorJohn Schoenick <jschoenick@mozilla.com>
Thu, 04 Oct 2012 16:03:21 -0700
changeset 120975 e12e84a82fa34d7da870b700c04ea7bc09a08c18
parent 120974 3de447b1c39655778504203e2b3e8547b726d199
child 120976 e08357289bedc9c2ba253c7d5b3b82ac40402624
push id1997
push userakeybl@mozilla.com
push dateMon, 07 Jan 2013 21:25:26 +0000
treeherdermozilla-beta@4baf45cdcf21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjosh
bugs787778
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 787778 - Add test. r=josh
content/base/test/Makefile.in
content/base/test/test_bug787778.html
content/base/test/test_bug787778.sjs
--- a/content/base/test/Makefile.in
+++ b/content/base/test/Makefile.in
@@ -569,16 +569,18 @@ MOCHITEST_FILES_B = \
 		file_bug687859-charset.js \
 		file_bug687859-inherit.js \
 		test_bug719533.html \
 		test_bug737087.html \
 		test_bug433662.html \
 		test_bug749367.html \
 		test_bug753278.html \
 		test_bug761120.html \
+		test_bug787778.html \
+		test_bug787778.sjs \
 		test_XHR_onuploadprogress.html \
 		test_XHR_anon.html \
 		file_XHR_anon.sjs \
 		test_XHR_system.html \
 		test_XHR_parameters.html \
 		test_ipc_messagemanager_blob.html \
 		test_mixed_content_blocker.html \
 		file_mixed_content_main.html \
new file mode 100644
--- /dev/null
+++ b/content/base/test/test_bug787778.html
@@ -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="./test_bug787778.sjs">
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/content/base/test/test_bug787778.sjs
@@ -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();
+}