diff --git a/docshell/test/chrome/662200a.html b/docshell/test/chrome/662200a.html
new file mode 100644
index 000000000000..0b9ead6f3e09
--- /dev/null
+++ b/docshell/test/chrome/662200a.html
@@ -0,0 +1,8 @@
+
+
+ A
+
+
+ Next
+
+
diff --git a/docshell/test/chrome/662200b.html b/docshell/test/chrome/662200b.html
new file mode 100644
index 000000000000..91e6b971d672
--- /dev/null
+++ b/docshell/test/chrome/662200b.html
@@ -0,0 +1,8 @@
+
+
+ B
+
+
+ Next
+
+
diff --git a/docshell/test/chrome/662200c.html b/docshell/test/chrome/662200c.html
new file mode 100644
index 000000000000..bc00e6b14b6a
--- /dev/null
+++ b/docshell/test/chrome/662200c.html
@@ -0,0 +1,7 @@
+
+
+ C
+
+
+
+
diff --git a/docshell/test/chrome/Makefile.in b/docshell/test/chrome/Makefile.in
index 9f41478819a3..8888d772aa90 100644
--- a/docshell/test/chrome/Makefile.in
+++ b/docshell/test/chrome/Makefile.in
@@ -109,6 +109,11 @@ _TEST_FILES = \
test_bug454235.xul \
bug454235-subframe.xul \
test_bug456980.xul \
+ test_bug662200.xul \
+ bug662200_window.xul \
+ 662200a.html \
+ 662200b.html \
+ 662200c.html \
$(NULL)
_DOCSHELL_SUBHARNESS = \
diff --git a/docshell/test/chrome/bug662200_window.xul b/docshell/test/chrome/bug662200_window.xul
new file mode 100644
index 000000000000..61ee3d25e6d5
--- /dev/null
+++ b/docshell/test/chrome/bug662200_window.xul
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docshell/test/chrome/docshell_helpers.js b/docshell/test/chrome/docshell_helpers.js
index d55a2748560f..04eefdaa1727 100755
--- a/docshell/test/chrome/docshell_helpers.js
+++ b/docshell/test/chrome/docshell_helpers.js
@@ -41,6 +41,8 @@ var gExtractedPath = null; //used to cache file path for extracting files fro
*
* forward: if true, the browser will execute goForward()
*
+ * reload: if true, the browser will execute reload()
+ *
* eventsToListenFor: an array containing one or more of the following event
* types to listen for: "pageshow", "pagehide", "onload",
* "onunload". If this property is undefined, only a
diff --git a/docshell/test/chrome/test_bug662200.xul b/docshell/test/chrome/test_bug662200.xul
new file mode 100644
index 000000000000..8a1ac47de25c
--- /dev/null
+++ b/docshell/test/chrome/test_bug662200.xul
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+ Test for Bug 662200
+
+
+
+
+
+ Mozilla Bug 662200
+
+
+
+
+
+
+
+
+
+
+