diff --git a/js/xpconnect/tests/chrome/Makefile.in b/js/xpconnect/tests/chrome/Makefile.in
index 3a2ed5f702ba..93bf7aab093f 100644
--- a/js/xpconnect/tests/chrome/Makefile.in
+++ b/js/xpconnect/tests/chrome/Makefile.in
@@ -50,6 +50,7 @@ MOCHITEST_CHROME_FILES = \
file_expandosharing.jsm \
test_bug758563.xul \
test_bug760076.xul \
+ test_documentdomain.xul \
$(NULL)
# Disabled until this test gets updated to test the new proxy based
diff --git a/js/xpconnect/tests/chrome/test_documentdomain.xul b/js/xpconnect/tests/chrome/test_documentdomain.xul
new file mode 100644
index 000000000000..a1972b0fe75a
--- /dev/null
+++ b/js/xpconnect/tests/chrome/test_documentdomain.xul
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+ Mozilla Bug 601277
+
+
+
+
+
+
+
+
+
+
diff --git a/js/xpconnect/tests/mochitest/Makefile.in b/js/xpconnect/tests/mochitest/Makefile.in
index 1c09d9c73a9b..5d17dc3a17cb 100644
--- a/js/xpconnect/tests/mochitest/Makefile.in
+++ b/js/xpconnect/tests/mochitest/Makefile.in
@@ -70,6 +70,7 @@ MOCHITEST_FILES = bug500931_helper.html \
file_expandosharing.html \
file_bug760131.html \
file_empty.html \
+ file_documentdomain.html \
$(NULL)
MOCHITEST_CHROME_FILES = \
diff --git a/js/xpconnect/tests/mochitest/file_documentdomain.html b/js/xpconnect/tests/mochitest/file_documentdomain.html
new file mode 100644
index 000000000000..19b3781b0867
--- /dev/null
+++ b/js/xpconnect/tests/mochitest/file_documentdomain.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+Better Late than Never
+
+