diff --git a/content/xul/content/crashtests/236853.xul b/content/xul/content/crashtests/236853.xul
deleted file mode 100644
index c502c4b14d9..00000000000
--- a/content/xul/content/crashtests/236853.xul
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Text
-
-
-
-
-
-
-
diff --git a/content/xul/content/crashtests/crashtests.list b/content/xul/content/crashtests/crashtests.list
index 30916fcd7e9..ee34955e6dc 100644
--- a/content/xul/content/crashtests/crashtests.list
+++ b/content/xul/content/crashtests/crashtests.list
@@ -1,5 +1,4 @@
load 107518-1.xml
-load 236853.xul
load 252448-1.xul
load 253479-1.xul
load 253479-2.xul
diff --git a/content/xul/content/test/Makefile.in b/content/xul/content/test/Makefile.in
index 9ccde806c88..9bad08f59cb 100644
--- a/content/xul/content/test/Makefile.in
+++ b/content/xul/content/test/Makefile.in
@@ -18,6 +18,8 @@ MOCHITEST_FILES = \
MOCHITEST_CHROME_FILES = \
test_bug233643.xul \
+ test_bug236853.xul \
+ file_bug236853.rdf \
test_bug398289.html \
398289-resource.xul \
test_bug775972.xul \
diff --git a/content/xul/content/crashtests/236853.rdf b/content/xul/content/test/file_bug236853.rdf
similarity index 100%
rename from content/xul/content/crashtests/236853.rdf
rename to content/xul/content/test/file_bug236853.rdf
diff --git a/content/xul/content/test/test_bug236853.xul b/content/xul/content/test/test_bug236853.xul
new file mode 100644
index 00000000000..9b79deb7586
--- /dev/null
+++ b/content/xul/content/test/test_bug236853.xul
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Text
+
+
+
+
+
+
+
diff --git a/content/xul/templates/src/crashtests/397148-1.xul b/content/xul/templates/src/crashtests/397148-1.xul
deleted file mode 100644
index 766bdd533ba..00000000000
--- a/content/xul/templates/src/crashtests/397148-1.xul
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/content/xul/templates/src/crashtests/crashtests.list b/content/xul/templates/src/crashtests/crashtests.list
index fbc33ba1675..ed99a3ae89a 100644
--- a/content/xul/templates/src/crashtests/crashtests.list
+++ b/content/xul/templates/src/crashtests/crashtests.list
@@ -1,9 +1,6 @@
load 257752-1-recursion.xul
-load 329335-1.xul
load 329884-1.xul
-skip-if(winWidget||browserIsRemote) HTTP load 330010-1.xul # bugs 742455 and 823470
skip-if(winWidget) load 330012-1.xul # bug 742455
-skip-if(winWidget) load 397148-1.xul # bug 742455
load 404346-1.xul
load 415019-1.xul
load 417840-1.xul
diff --git a/content/xul/templates/tests/chrome/Makefile.in b/content/xul/templates/tests/chrome/Makefile.in
index 72554837384..4b6564e7865 100644
--- a/content/xul/templates/tests/chrome/Makefile.in
+++ b/content/xul/templates/tests/chrome/Makefile.in
@@ -227,9 +227,20 @@ MOCHITEST_CHROME_FILES = \
test_tmpl_errors.xul \
test_tmpl_regenerate.xul \
test_bug441785.xul \
+ test_bug329335.xul \
bug441785-1.rdf \
bug441785-2.rdf \
test_sortservice.xul \
$(NULL)
+# bugs 742455 and 823470
+ifneq ($(OS_ARCH),WINNT)
+MOCHITEST_CHROME_FILES += \
+ test_bug330010.xul \
+ file_bug330010.rdf \
+ $(NULL)
+endif
+
+# test_bug397148.xul is disabled because it leaks. See bug 879531.
+
include $(topsrcdir)/config/rules.mk
diff --git a/content/xul/templates/src/crashtests/330010-1.rdf b/content/xul/templates/tests/chrome/file_bug330010.rdf
similarity index 100%
rename from content/xul/templates/src/crashtests/330010-1.rdf
rename to content/xul/templates/tests/chrome/file_bug330010.rdf
diff --git a/content/xul/templates/src/crashtests/329335-1.xul b/content/xul/templates/tests/chrome/test_bug329335.xul
similarity index 59%
rename from content/xul/templates/src/crashtests/329335-1.xul
rename to content/xul/templates/tests/chrome/test_bug329335.xul
index bdbee294e93..75190c17b79 100644
--- a/content/xul/templates/src/crashtests/329335-1.xul
+++ b/content/xul/templates/tests/chrome/test_bug329335.xul
@@ -1,14 +1,20 @@
+
+
-
+
-
+
diff --git a/content/xul/templates/tests/chrome/test_bug397148.xul b/content/xul/templates/tests/chrome/test_bug397148.xul
new file mode 100644
index 00000000000..0f15cfa2977
--- /dev/null
+++ b/content/xul/templates/tests/chrome/test_bug397148.xul
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+