diff --git a/mozilla/toolkit/content/tests/chrome/Makefile.in b/mozilla/toolkit/content/tests/chrome/Makefile.in
index afacdde4ef2..64c27533206 100644
--- a/mozilla/toolkit/content/tests/chrome/Makefile.in
+++ b/mozilla/toolkit/content/tests/chrome/Makefile.in
@@ -50,6 +50,8 @@ _TEST_FILES = bug288254_window.xul \
test_bug360437.xul \
bug366992_window.xul \
test_bug366992.xul \
+ bug331215_window.xul \
+ test_bug331215.xul \
$(NULL)
libs:: $(_TEST_FILES)
diff --git a/mozilla/toolkit/content/tests/chrome/bug331215_window.xul b/mozilla/toolkit/content/tests/chrome/bug331215_window.xul
new file mode 100644
index 00000000000..c074824fc2d
--- /dev/null
+++ b/mozilla/toolkit/content/tests/chrome/bug331215_window.xul
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/tests/chrome/test_bug331215.xul b/mozilla/toolkit/content/tests/chrome/test_bug331215.xul
new file mode 100644
index 00000000000..699324d833c
--- /dev/null
+++ b/mozilla/toolkit/content/tests/chrome/test_bug331215.xul
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+ Test for Bug 331215
+
+
+
+
+Mozilla Bug 331215
+
+
+
+
+
+
+
+
+
+
+